Reader Level:
Articles

How to Create a Balloon Tooltip in C# and Windows Forms

By Mahesh Chand on Jul 27, 2010
How to create a Balloon Tooltip in C# and Windows Forms
  • 0
  • 0
  • 54138

To create a balloon tooltip, we just need to set IsBalloon property of ToolTip control to true. The following code snippet create a balloon tooltip and attaches it to a Button control.

ToolTip buttonToolTip = new ToolTip();

buttonToolTip.ToolTipTitle = "Button Tooltip";

buttonToolTip.UseFading = true;

buttonToolTip.UseAnimation = true;

buttonToolTip.IsBalloon = true;

 

buttonToolTip.ShowAlways = true;

 

buttonToolTip.AutoPopDelay = 5000;

buttonToolTip.InitialDelay = 1000;

buttonToolTip.ReshowDelay = 500;

 

buttonToolTip.SetToolTip(button1, "Click me to execute.");

Mahesh Chand

C# Corner founder, 10-times Microsoft MVP, technical author, and software architect. Mahesh authored his first book, A Programmer’s Guide to ADO.NET in C# with APress at the age of 25. C# Corner is a memb... Read more

COMMENT USING