articles

home / developersection / articles / tooltip class in c#

ToolTip Class in C#

AVADHESH PATEL 5673 23-Jul-2012

A tooltip is a small pop-up window that displays some information when mouse over on a control for a short period of time.

There are two ways through which we can set tooltip on control. First one is via Class and second one is via Property.

Via Class:-
private void btnTooTrip_MouseHover(object sender, EventArgs e)
        {
            ToolTip ttp = new ToolTip();
            ttp.SetToolTip(btnTooTrip, "Click me to execute.");
           
        }

Via Properties:-

Step1:-Take one button on windows form and drag-drop tooltip control on form

Step2:-Write popup message on button’s properties “ToolTip on ToolTip1”

ToolTip Class in C#


c# c# 
Updated 07-Sep-2019

Avadhesh Kumar Patel District Project Manager - Aligarh 14 months work experience in Panchayati Raj Department Sector as District Project Manager & 12 months work experience in IT Sector as Software Engineer. :-)

Leave Comment

1 Comments

Comments

Liked By