Dropdown

Simon4VB

Member
Joined
Apr 2, 2009
Messages
23
Programming Experience
1-3
Instead of a menu strip, is it possible to use a dropdown menu to open different child forms.
If yes how in VS2005.

Thanks,
Simon.
 
MenuStrips don't open forms. You open forms with code that you execute at the appropriate moment. That moment might be on the Click of a menu item, the Click of a Button, the Tick of a Timer, etc, etc. The code to open a form is the same no matter what. You just put it wherever is appropriate. If that's in the Click event handler of a menu item then that's where you put it. If it's somewhere else then you put it somewhere else. In your case it's going to be in the Click event handler of a menu item. Whether that menu item is associated with a MenuStrip or not is irrelevant. It's still a menu item.

Now that we have that established, I think the question that you really need answered is how you display a drop-down menu. In short, use a ContextMenuStrip. To provide more information than that, we'd have to know what it;s supposed to be dropping down from.
 
Back
Top