Home > DeveloperSection > Articles > ToolTip Control in C#.Net

ToolTip Control in C#.Net


C# C# 
Ratings:
0 Comment(s)
 11754  View(s)
Rate this:

ToolTip Control in C#.Net                       


ToolTip is used to display some text when the mouse is move over a control. This control is helpful in providing quick information when the user moves the mouse over an associated control.

How to use ToolTip Control

Drag and drop a Tooltip control and a control on which you want to used tooltip control.ToolTip Control in C#.Net

ToolTip Control in C#.Net

Code:

private void frmToolTip_Load(object sender, EventArgs e)

{

            //tooltip is set to Button

            toolTip1.SetToolTip(button1, "Click to next Image");

}

Run the project

ToolTip Control in C#.Net

When mouse will move over the Next button then tooltip will show. 

ToolTip Control in C#.Net

ToolTip properties

Active - set the tooltip status, by default it set to true set false to hide the tooltip.

ToolTipIcon -set the icon that will show on the tooltip.

Example:

private void frmToolTip_Load(object sender, EventArgs e)

{

            //set the tooltip icon

            toolTip1.ToolTipIcon = ToolTipIcon.Info;

}

ToolTip Control in C#.Net

IsBalloon:  when IsBalloon property is true then tooltip will display as a balloon.Example:

private void frmToolTip_Load(object sender, EventArgs e)

{

            //tooltip show as baloon

            toolTip1.IsBalloon = true;

}

ToolTip Control in C#.Net


Don't want to miss updates? Please click the below button!

Follow MindStick