The tip of the button when the mouse is over

I have a simple question! I would like to know how to add as a hint when the user hovers over the button, for example, like a gray square that appears below the button. I am using Windows Form!

PS-> I know that it is out of date, and now we have WPF, but I use Form!

Thank!

+5
source share
1 answer

Use the ToolTip button. Like.

System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
ToolTip1.SetToolTip(this.Button1, "Button Info");

Or you can:
Add a ToolTip control to your form, name it ToolTip1.
Add the text for the tooltip to the "ToolTip on ToolTip1" property of the button.

+22
source

All Articles