【C#】在VS2005中C#实现鼠标悬停提示
2010年01月22日
// 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 = 500;
toolTip1.ReshowDelay = 200;
// 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, "点击后自动生成条码");
toolTip1.SetToolTip(this.comboBox15, "悬停提示的内容");
toolTip1.SetToolTip(this.comboBox14, "悬停提示的内容");
toolTip1.SetToolTip(this.comboBox13, "悬停提示的内容");
toolTip1.SetToolTip(this.comboBox12, "悬停提示的内容");
toolTip1.SetToolTip(this.textBox1, "修改选项后需要重新生成。");
2010年01月22日
// 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 = 500;
toolTip1.ReshowDelay = 200;
// 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, "点击后自动生成条码");
toolTip1.SetToolTip(this.comboBox15, "悬停提示的内容");
toolTip1.SetToolTip(this.comboBox14, "悬停提示的内容");
toolTip1.SetToolTip(this.comboBox13, "悬停提示的内容");
toolTip1.SetToolTip(this.comboBox12, "悬停提示的内容");
toolTip1.SetToolTip(this.textBox1, "修改选项后需要重新生成。");