-
-
Save jscfping/b58b1fd844744541fb6c49e669cf2b96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void listBox1_MouseDown(object sender, MouseEventArgs e) | |
{ | |
if(e.Button == MouseButtons.Right) | |
{ | |
listBox1.SelectedIndex = listBox1.IndexFromPoint(e.X, e.Y); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment