How to display a tooltip in a windows form?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Anuhas
    New Member
    • Jan 2008
    • 23

    How to display a tooltip in a windows form?

    Dear Experts,

    Tell me how to display a tool tip in a windows form when mouse point is on a button.

    Please help me.

    Anuhas
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    To do it on a windows form you need to create a ToolTip object then attach it to your button. Like so:

    Code:
     
    Dim oToolTip As New System.Windows.Forms.ToolTip 
    oToolTip.SetToolTip(Button1, "Click Me Please!")
    Hope this helps,

    Dr B

    Comment

    Working...