Link to home
Start Free TrialLog in
Avatar of lapucca
lapucca

asked on

How do I add a ToolStripSeparator on a mainmenu bar programmactically?


Thanks.
Avatar of ozymandias
ozymandias
Flag of United Kingdom of Great Britain and Northern Ireland image

You just add a tool bar button but set its style to separator :

this.toolBarButton.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
Avatar of lapucca
lapucca

ASKER

Where is the adding part?  Also, how do I specify to insert this infront of the last menuitem which is the Exit.  Thank you.
Avatar of lapucca

ASKER

I'm referring to the text menu part not the menustrip that contains the icon buttons.  Thanks.
ASKER CERTIFIED SOLUTION
Avatar of ozymandias
ozymandias
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial