Is there a way to include help text to a button?

blumonde

Well-known member
Joined
Jul 26, 2005
Messages
68
Programming Experience
Beginner
Does anyone know how we can include help text to a button? For instance, when a user hover the mouse cursor over a button, a help message popups to explain the functionality of the button.

I checked the properties of button control but didn't see anything relating to this option.

Please help.

Thanks,

blumonde
 
Last edited:
blumonde you can use following code to solve your problem

VB.NET:
Dim ButtonToolTip as new ToolTip
ButtonToolTip.setToolTip(Me.Button1,"This is button Tool Tip")
 
akhhttar is completely correct. However, if you want to use tooltips then you would normally add a Tooltip component to your form in the designer. Each control will then get an extra property in the Properties window that will allow you to enter the Tooltip text for that control. You should also keep in mind that Tooltips are generally meant to be quite short. You can also add a HelpProvider component to your form that behaves in a similar way to the Tooltip by allowing you to specify a help string for each control, but that help string is displayed when the user presses F1 while the control is focused. This is where you should display more involved help messages.
 
Back
Top