MenuStrip drop-down programmatically

Steve36445

Well-known member
Joined
Dec 23, 2007
Messages
58
Programming Experience
10+
Can you help me please?

I am writing an application using a drop-down menu.

Is there any way where I can get the 1st level of the menu to drop-down automatically when the form gets focus or is activated or even to be permanently drop down.

Thanks,

Steve
 
You can call the ShowDropDown method of the menu item that you want to expand.

If you want the items visible all the time then you shouldn't be using a drop-down in the first place. You can just create a MenuStrip and dock it to the left edge of the form or even undock it altogether. You can then just handle the Click events of the top-level items.
 
Back
Top