C# adding click events to a list box
问题 I'm trying to add a click event to a list box but for some reason nothing happens when I click an item in my list box. My guess and from what I've read, the code should look something like this private void listBox1_Click(object sender, EventArgs e) { //Code Ex. TextBox1.Text = "Success"; } That's not working though. Anyone know how to get this to happen? Wouldn't mind knowing the double click and other click variations too.... 回答1: If you want it to trigger when you 'click an item' in the