Toll Free: (877) 723-1442 U.S. and Canada
Support
ActiveX / COM
Visual C++ / MFC
Customer Spotlight
Corporate Partners
Contact Sales

Call center available M-F 9:00 - 6:00 US Eastern Time.

U.S. and Canada
(877) 723-1442

International
(517) 625-5729

Email

Displaying Text Below ToolBar Icons

Author: Mike Palmatier
Posted: February 3, 2006
Environment: Visual Basic 6.0

You can specify that the Caption of each ToolBar button be displayed under the ToolBar icon by setting the CommandBars.Options.ShowTextBelowIcons property to True. This will be applied to all toolbars. You also have the option of individually setting this property to specific ToolBars by setting the ShowTextBelowIcons property of each ToolBar.



This sample code illustrates how to add text below your toolbar icons.

 

 CommandBars.Options.ShowTextBelowIcons = True

 



This sample code illustrates how to add text below the icons in a specific toolbar only.

 

 CommandBars(2).ShowTextBelowIcons = True

 

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Other products and/or company names may be trademarks or registered trademarks of their respective owners.