contex menu on list box

  • Thread starter Thread starter alex
  • Start date Start date
A

alex

Hi,
how can i call a contex menu on a list box when the item is right
clicked with the mouse ?

there is a list box click event but how can i determine what mouse
button was clicked ?

Thanks
A
 
alex said:
how can i call a contex menu on a list box when the item is right
clicked with the mouse ?

there is a list box click event but how can i determine what mouse
button was clicked ?

If you wanna show the menu manually, use the mouseup event and call the
contextmenu's show method.

Automatically: Add a contextmenu to the form and assign the contextmenu to
the listbox' contextmenu property.
 
Back
Top