开发者

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.


  1. Add ToolTip control to the form. Drag and drop from the Toolbox.
  2. 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).
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜