Malfist Malfist - 1 year ago 273
C# Question

Adding a horizontal separator in a MenuStrip

I can't seem to find any way to add a horizontal separator in a MenuStrip. Visual Studio complains Cannot add ToolStropSeparator to MenuStrip.

Any idea's how I can do this?

Answer Source

I'm able to run code like this:

this.menuMain.Items.Add(new ToolStripSeparator());

without any trouble... What kind of error are you getting?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download