mousehover

  • Thread starter Thread starter Stout
  • Start date Start date
S

Stout

Is there a way of having a tip appear when you hover over a button? I
have a button that has an icon on it, I would like a tip to pop up
explaining what the button does when the mouse is over the button.

Thanks
 
Stout said:
Is there a way of having a tip appear when you hover over a button? I
have a button that has an icon on it, I would like a tip to pop up
explaining what the button does when the mouse is over the button.

Thanks
I think that's done with the ToolTip control.
Add it to the form, and set some properties, then you can set the Tool Tip
text on each of the other controls.
 
Is there a way of having a tip appear when you hover over a button? I
have a button that has an icon on it, I would like a tip to pop up
explaining what the button does when the mouse is over the button.

Thanks

(VB2005)
Use the ToolTip Class. You would add something like the following to
the form's load event to create a tool tip and tooltip functionality
for (in this case) a button named Button1:

Dim Button1Hint As New ToolTip()
' Set up the delays for the ToolTip.
Button1Hint.AutoPopDelay = 5000
Button1Hint.InitialDelay = 1000
Button1Hint.ReshowDelay = 500
' Set up the ToolTip text for the Button
Button1Hint.SetToolTip(Me.Button1, "This is Button 1")

Gene
 
Back
Top