beerc0der Posted October 19, 2003 Posted October 19, 2003 could some1 advise how to detect right mouse click in listbox. thanks Quote
*Experts* Volte Posted October 19, 2003 *Experts* Posted October 19, 2003 You can check e.MouseButtons to see if it's MouseButtons.Right in the ListBox's MouseDown event. Quote
beerc0der Posted October 19, 2003 Author Posted October 19, 2003 thanks for your reply simon. yep, issue was that i wasnt capturing the event. i got it working now but adding code to my initialize component this.listBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.listBox1_Click); then i can tell wat type of click as you suggested. cheers, Quote
beerc0der Posted October 19, 2003 Author Posted October 19, 2003 done. thanks. i assume this is because thats visual studio generated code section. any other reasons u know of? cheers. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.