How to add a separator to a WinForms ContextMenu?
Inside my control, I have: ContextMenu = new ContextMenu(); ContextMenu.MenuItems.Add(new MenuItem("&Add Item", onAddSpeaker)); ContextMenu.MenuItems.Add(new MenuItem("&Edit Item", onEditSpeaker)); ContextMenu.MenuItems.Add(new MenuItem("&Delete Item", onDeleteSpeaker)); ContextMenu.MenuItems.Add( ??? ); ContextMenu.MenuItems.Add(new MenuItem("Cancel")); How to add a separation line to this ContextMenu? I believe it's just a dash: ContextMenu.MenuItems.Add("-"); This works just as well as the dash, and i suspect the Winforms will translate the dash to a ToolStripSeparator. I for one think this