Showing tooltips from buttons

DominicB

Active member
Joined
May 2, 2008
Messages
30
Programming Experience
Beginner
Hi all

Having a VBA background, I assumed that I could place buttons on a form and use a tooltip property, much like the ControlTipText property on Office UserForm buttons, which appears when you hover the mouse over the button but it appears you can't. Or am I mistaken?

Thanks for any light (or workarounds) anyone can shed on this.

DominicB
 
Drag a tooltip onto your form and set the value in the MouseHover event for the button

VB.NET:
Public Class Form1

    Private Sub Button1_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) _
        Handles Button1.MouseHover

        ToolTip1.SetToolTip(Button1, "My Tooltip Text")

    End Sub
End Class
 
Last edited:
Adding a Tooltip component is correct, but you don't use any of that code. Just select the button and fill in the text in the new property "Tooltip on Tooltip1".
 
Back
Top