in c# or else vb.net, using visual studio package, how add separator line commandbarpopup menu?.
i've tried solution given @carlos j. quintero in question:
how insert separator line between multiple add-in commands in menu command bar?
using code:
private sub addseparatorline(byref cmndbarpopup commandbarpopup, byval index integer) dim tempcommandbarbutton commandbarbutton = directcast(cmndbarpopup.controls.add(msocontroltype.msocontrolbutton, missing.value, missing.value, index, true), commandbarbutton) tempcommandbarbutton .begingroup = true .visible = true .enabled = false end end sub however, adds blank space (a button without name) separator, isn't separator line.
this kind of separator line expect:

but got:

creating user interface packages totally different creating add-ins. packages done in .vsct file. line separators separate groups, if want line separator need declare new group. see how create reusable groups of buttons.
Comments
Post a Comment