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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top