Hi!
I'm working on an Add-in that creates a CommandBar of the toolbar type and
inserts a few buttons there. The problem I have is that the buttons are
displayed with both icon and text. How do I hide the text part so that only
the icons are displayed?
This is the code I use to create the toolbar and buttons:
objCommandBar = applicationObject.Commands.AddCommandBar("Toolbar",
vsCommandBarType.vsCommandBarTypeToolbar)
CommandObj = applicationObject.Commands.AddNamedCommand(objAddIn,
"InsertSignature", "InsertSignature", "Description", True, 59, Nothing, 1 +
2)
CommandObj.AddControl(objCommandBar)
All ideas are very welcome!
Cheers,
Emil
Carlos J. Quintero [MVP] - 27 Aug 2004 09:00 GMT
Command.AddControl returns a CommandBarControl that you can cast to a
CommandBarButton to access its Style property...

Signature
Carlos J. Quintero (Visual Developer - .NET MVP)
FAQs, Knowledge Base, Files, Docs, Articles, Utilities, etc. for .NET
addins:
http://groups.yahoo.com/group/vsnetaddin/ (free join)
> Hi!
>
[quoted text clipped - 17 lines]
>
> Emil
Emil Astrom - 27 Aug 2004 17:39 GMT
Perfect! Many thanks!
/Emil
> Command.AddControl returns a CommandBarControl that you can cast to a
> CommandBarButton to access its Style property...
[quoted text clipped - 22 lines]
> >
> > Emil