Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

creating a tip balloon over a control on hover?

Tags:

vb.net

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.

like image 296
John Kapsis Avatar asked Apr 04 '11 22:04

John Kapsis


2 Answers

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.

like image 50
MusiGenesis Avatar answered Sep 19 '22 11:09

MusiGenesis


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>
like image 34
Zian Choy Avatar answered Sep 20 '22 11:09

Zian Choy