mousehover

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
 
H

Hal Rosser

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.
 
G

gene kelley

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top