7

I simply want when someone hovers his mouse over a checkbox a "tip balloon" to appear describing what the control does?

How can this be done?

Using VB.NET with Visual Studio 2010.

p.campbell
  • 98,673
  • 67
  • 256
  • 322
John Kapsis
  • 105
  • 1
  • 1
  • 5

3 Answers3

18

Drag a ToolTip control from the toolbox on the left onto your form (the designer will then put it below your form, since it's not meant to be visible normally). By default it will be named "tooltip1".

Then select your checkbox and go over to its properties window. You should see a property labeled "Tooltip on tooltip1" - set this to whatever you want. When you run the app and hold the mouse over your checkbox, you should see the tooltip text.

MusiGenesis
  • 74,184
  • 40
  • 190
  • 334
1

For WinForms, see Display a tooltip over a button using Windows Forms, or briefly stated...

  1. Drag in a ToolTip.
  2. this.toolTip1.SetToolTip(this.targetControl, "My Tool Tip")

For WPF:

 <Button>Click Me
            <Button.ToolTip>
                <ToolTip>Blob of text.
                </ToolTip>
            </Button.ToolTip>
        </Button>
Community
  • 1
  • 1
Zian Choy
  • 2,846
  • 6
  • 33
  • 64
-1
tooltip1.show("Your text", then your control)
Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140