欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ToolTip

程序员文章站 2024-03-24 12:28:28
...
// 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");