Open In App

How to make a balloon ToolTip window in C#?

In Windows Forms, the ToolTip represents a tiny pop-up box which appears when you place your pointer or cursor on the control and the purpose of this control is it provides a brief description about the control present in the windows form. In ToolTip, you are allowed to change the shape of the ToolTip window by using IsBalloon Property.
With the help of this property, you can change the ToolTip window from the standard rectangular window to the balloon window. You can set this property in two different ways:

1. Design-Time: It is the easiest way to set the value of the IsBalloon property as shown in the following steps:



2. Run-Time: It is a little bit trickier than the above method. In this method, you can set the IsBalloon property of ToolTip programmatically with the help of given syntax:



public bool IsBalloon { get; set; }

Here, the value of this property is of System.Boolean type. If the value of this property is set to true, then the ToolTip window is of balloon window. And if the value of this property is set to be false, then the ToolTip window is of the standard rectangular window. The default value of this property is false.

The following steps show how to set the IsBalloon Property of the ToolTip dynamically:


Article Tags :
C#