How could I add a separator in a PopMenu?
I have a PopMenu as below.
I want to add a separator between the menu.
Could anyone give me a .NET sample code for it?
Solved! Go to Solution.
What kind of PopupMenu object type are you working with? The exact type?
System.Windows.Forms.ContextMenu menu = new ContextMenu();
'Autodesk.AutoCAD.Interop.AcadPopupMenu' object has a method:
I was using Autodesk.AutoCAD.Customization.PopMenu.
And I got the separator.
The PopMenuItem constructor with no macro assigned is the equivalent of a separator.
Thank you for your help anyway.