---
title: "ToolTip Class in C#"  
description: "A tooltip is a small pop-up window that displays some information when mouse over on a control for a short period of time."  
author: "AVADHESH PATEL"  
published: 2012-07-23  
updated: 2019-09-07  
canonical: https://www.mindstick.com/articles/967/tooltip-class-in-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# ToolTip Class in C#

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#](https://www.mindstick.com/mindstickarticle/78077ad2-e8e2-4ee5-8ec5-9670d7edc396/images/7cf21bb9-dd1e-44aa-9721-b4743a902f01.png)

---

Original Source: https://www.mindstick.com/articles/967/tooltip-class-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
