Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / August 2004

Tip: Looking for answers? Try searching our database.

How to hide Add-in toolbar button texts

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Emil Astrom - 26 Aug 2004 18:31 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.