Home All Groups Group Topic Archive Search About

Anyone know how to add a drop down menu to a button that will appear when you right click the mouse?

Author
23 Nov 2006 9:43 PM
Marc
Anyone know how to add a drop down menu to a button that will appear
when you right click the mouse?

Author
23 Nov 2006 9:59 PM
Marc
I should add i know how to use the right mouse button command but not
hot to bring a menu up?

Marc wrote:
Show quoteHide quote
> Anyone know how to add a drop down menu to a button that will appear
> when you right click the mouse?
Author
23 Nov 2006 11:05 PM
RobinS
Look into Context menus. That's what you're looking for.

Robin S.
------------------
Show quoteHide quote
"Marc" <marc_cro***@hotmail.com> wrote in message
news:1164319181.196351.53390@f16g2000cwb.googlegroups.com...
>I should add i know how to use the right mouse button command but not
> hot to bring a menu up?
>
> Marc wrote:
>> Anyone know how to add a drop down menu to a button that will appear
>> when you right click the mouse?
>
Author
23 Nov 2006 11:00 PM
Herfried K. Wagner [MVP]
"Marc" <marc_cro***@hotmail.com> schrieb:
> Anyone know how to add a drop down menu to a button that will appear
> when you right click the mouse?

Drop a contextmenu component from the toolbox onto your form and set up the
menu entries.  Then assign the contextmenu component to your button
control's 'ContextMenu' property either by using the properties window or
via code at runtime.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>