articles

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

ToolTip Control in C#.Net

ToolTip Control in C#.Net

Anonymous User 18608 24-Jan-2011

The ToolTip Control in C#.Net

A ToolTip control 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 control on which you want to use 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 the 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


c# c# 
Updated 04-Mar-2020
I am a content writter !

Leave Comment

Comments

Liked By