Deploying ToolTipText effectively for end users

Deploying ToolTipText effectively for end users

This tip originally appeared on VBCode.com. Please let others know how useful it is via the rating scale at the end of the tip. Do you have a useful VB, .NET or Visual Studio tip or code to share? Send it in.


I have always had a love/hate relationship with ToolTips. I like them as a method of conveying simple help information to an application user but realize that, by default, they are small and hard to read and that they can become annoying once the user has mastered the application.

Recently I discovered how easy it is to change the characteristics or the ToolTips from the properties/appearance tab of the desktop. Then I realized that by using the tag property of the controls on a form as a backup to the ToolTipText, I could effectively let the user turn ToolTips on and off.

When my applications start, I loop through the controls of a form and copy the ToolTip text for each control into the tag property for that control. Then I check to see if the user wants ToolTips or not from their saved options. If they do not, I loop through the controls and set the ToolTip text to null. If the user changes back to wanting the ToolTips, then I copy the tag to the ToolTip and they become active again.

So far this has worked well. It seems that once in a while the user must restart the program to get the new setting to work, but that seems like a very small

    Requires Free Membership to View

    When you register, you'll begin receiving targeted emails from my team of award-winning writers. Our goal is to provide a unique online resource for developers, architects and development managers tasked with building and maintaining enterprise applications using Visual Basic, C# and the Microsoft .NET platform.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchWinDevelopment.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchWinDevelopment.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

trade-off.

This was first published in December 2005

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.