Board index » Visual Studio » How to create right-click menu

How to create right-click menu

Visual Studio161
When i right-click in a listbox I wish for a menu to pop up by cursor.

How do I create such a menu?



Thx in advance!





Regards /Snedker


-
 

Re:How to create right-click menu

On Mon, 21 Feb 2005 10:36:53 +0100, Morten Snedker

<morten_spammenot_ATdbconsult.dk>wrote:



Talk about not seing the woods for trees!



It's all in the toolbox! Jeez... a whole lotta things has gotten too

easy with .Net ! ;-)



/Snedker



Quote
When i right-click in a listbox I wish for a menu to pop up by cursor.

How do I create such a menu?



-

Re:How to create right-click menu

Morten,



"Morten Snedker" <morten_spammenot_ATdbconsult.dk>schrieb:

Quote
When i right-click in a listbox I wish for a menu to pop up by cursor.

How do I create such a menu?



Drag a ContextMenu component onto the form and assign it to the listbox'

'ContextMenu' property.



--

M S Herfried K. Wagner

M V P <URL:dotnet.mvps.org/>">dotnet.mvps.org/>

V B <URL:dotnet.mvps.org/dotnet/faqs/>">dotnet.mvps.org/dotnet/faqs/>



-