Hi,
Is it possible to show the list box drop down menu only when a user "right click" on an Item?
Hi,
Is it possible to show the list box drop down menu only when a user "right click" on an Item?
Visit this webpage!
http://office.microsoft.com/en-us/in...030201033.aspx
Make a context menu strip and add the items to it then:
when you right click listbox1 it should show the contextmenu.Code:Private Sub ListBox1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseDown If e.Button = Windows.Forms.MouseButtons.Right Then ContextMenuStrip1.Show(MousePosition) End If End Sub
Hey thanks a lot for the code!
I will give it a try in my application & let you know if this works for me?
Bookmarks