Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Getting Popup Menus inVB .net

I am trying to get popup menu's in vb.net like i had them in vb 6. I see that .net has 2 different menu controls. Is there a way to get the popup menu to show in .net with one of thoe menu's
[201 byte] By [christianbg] at [2007-11-11 10:20:16]
# 1 Re: Getting Popup Menus inVB .net
Use the ContextMenu control to create a popup menu.
Phil Weber at 2007-11-11 20:48:07 >
# 2 Re: Getting Popup Menus inVB .net
i have gotten that far since i posted the menu. Thank you. Now i can't get the menu to display on the control i need to it be displayed on. it shows up in the corner of the form. i set the contextmenu properties on the grid control and that didn't fix the problem either
christianbg at 2007-11-11 20:49:08 >
# 3 Re: Getting Popup Menus inVB .net
Take a look at the example here: http://msdn2.microsoft.com/en-us/library/fc6h48kx(VS.80).aspx

The ContextMenu's Show method accepts a control reference and a Point indicating the desired offset from the control's top-left corner.
Phil Weber at 2007-11-11 20:50:18 >