When you create a menu on the form in the Design view, you can right click and select "Insert Separator".
Is there a way to create a separator that will look the same if I create the menu programmatically (maybe using a vb constant)?
This is how I do it right now, but as you can tell, it doesn't look the same:
Is there a way to create a separator that will look the same if I create the menu programmatically (maybe using a vb constant)?
This is how I do it right now, but as you can tell, it doesn't look the same:
Code:
Dim mnuSeparator As New MenuItem
mnuSeparator.Text = "---------------"
menu.MenuItems.Add(mnuSeparator)