// Create the ToolTip and associate with the Form container.
ToolTip toolTip1 = new ToolTip();
// Set up the delays for the ToolTip.
toolTip1.AutoPopDelay = 5000;
toolTip1.InitialDelay = 1000;
toolTip1.ReshowDelay = 500;
// Force the ToolTip text to be displayed whether or not the form is active.
toolTip1.ShowAlways = true;
// Set up the ToolTip text for the Button and Checkbox.
toolTip1.SetToolTip(this.button1, "My button1");
toolTip1.SetToolTip(this.checkBox1, "My checkBox1");
③提示图片设置:
ToolTipIcon属性
Error 错误图标
Info 信息图标。
None 不是标准图标。
Warning 警告图标。
④气泡样式:ToolTip.IsBalloon 属性 设置为True
⑤自定义位置和触发事件显示:ToolTip.Show 方法,注意相关参数的设置。
例如: