Home All Groups Group Topic Archive Search About
Author
9 Apr 2006 12:23 AM
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

Author
9 Apr 2006 3:51 AM
Hal Rosser
"Stout" <whan***@Yahoo.com> wrote in message
news:1144542200.588706.278690@z34g2000cwc.googlegroups.com...
> 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.
Author
9 Apr 2006 3:58 AM
gene kelley
On 8 Apr 2006 17:23:20 -0700, "Stout" <whan***@Yahoo.com> wrote:

>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