Popup Menu

H

HardySpicer

You know when you right click on the desktop and one of those menus
appears with arrows to the right on some options for more detail? How
can I get one of those in a vb.net program to select a load of
options? At present I have a combo box but I have so many options that
it would be better sliding to the right with a sub-menu.
I know how to get a pull-down version but I don't want one of those.


Hardy
 
C

Cor Ligthert[MVP]

Hardy,

It is called a "context" menu, you can add it to any control you want, the
most part you can do using the designer properties of the involved control.

Drag a contextmenustrip from your toolbox on the form and bind that in the
control properties to the control.

By instance the form or a textbox.

Cor
 
H

HardySpicer

Hardy,

It is called a "context" menu, you can add it to any control you want, the
most part you can do using the designer properties of the involved control.

Drag a contextmenustrip from your toolbox on the form and bind that in the
control properties to the control.

By instance the form or a textbox.

Cor

I've tried that and it needs a container it seems ?
 
M

Miro

Take a look at your control on the 'Context Menu Strip' property.



Hardy,

It is called a "context" menu, you can add it to any control you want, the
most part you can do using the designer properties of the involved
control.

Drag a contextmenustrip from your toolbox on the form and bind that in the
control properties to the control.

By instance the form or a textbox.

Cor

I've tried that and it needs a container it seems ?
 

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

Top