Adding tooltip to groupbox
After reading the descriptions of every property, I just can't find anything to define a tooltip in the groupbox class, or textbox or listview. Can I ask for a link to put me o开发者_StackOverflow社区n the right track?
To define tooltips, you first need to drag a ToolTip component on the from from the toolbox. Then every control will have addition tooltip text properties. You can also do that manually:
ToolTip toolTip1 = new ToolTip();
toolTip1.SetToolTip(this.groupBox1, "My groupBox1 tooltip!");
toolTip1.SetToolTip(this.checkBox1, "My checkBox1 tooltip!");
See the msdn article here.
- Add
ToolTip
control to the form. Drag and drop from the Toolbox. - Go to the properties of the group box and set property
Tool Tip on toolTip1
to the desired tooltip text (toolTip1 is the name of your tooltip control).
精彩评论