I am adding the menuitems to the contextMenu of a little system tray application. I would like to add a separator between two MenuItems... here is the code:
this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem2, this.menuItem5, this.menuItem3, this.menuItem4});
How can I tell it to put a horisontal separator between 2 MenuItems?
I have tried:
menuItem.BreakLine = true;
but that adds a vertical break and creates 2 columns of my popupmenu.
tia
this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem2, this.menuItem5, this.menuItem3, this.menuItem4});
How can I tell it to put a horisontal separator between 2 MenuItems?
I have tried:
menuItem.BreakLine = true;
but that adds a vertical break and creates 2 columns of my popupmenu.
tia