How to: Set ToolTips for Controls on a Windows Form at Design Time
Visual Studio 2010
You can set a ToolTip string in code or in the Windows Forms Designer. For more information about the ToolTip component, see ToolTip Component Overview (Windows Forms).
Note |
|---|
The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Working with Settings. |
To set a ToolTip programmatically
Add the control that will display the ToolTip.
Use the SetToolTip method of the ToolTip component.
' In this example, Button1 is the control to display the ToolTip. ToolTip1.SetToolTip(Button1, "Save changes")
// In this example, button1 is the control to display the ToolTip. toolTip1.SetToolTip(button1, "Save changes");
// In this example, button1 is the control to display the ToolTip. toolTip1.SetToolTip(button1, "Save changes");
To set a ToolTip in the designer
Add a ToolTip component to the form.
Select the control that will display the ToolTip, or add it to the form.
In the Properties window, set the ToolTip on ToolTip1 value to an appropriate string of text.
Design view directions inaccurate
I, too, am missing the "ToolTip on ToolTip1" property. Using Visual Studio 2010 Version 10.0.40219.1 SP1Rel. .NET Framework Verison 4.0.30319 SP1Rel
- 2/21/2012
- Alan H Gifford
Note