Search code examples
c#.net-3.5menustrip

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?


Solution

  • I'm able to run code like this:

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

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