1. 在VS2005中新建一个窗体工程,对按钮button1的MouseHover事件进行编译。private void button1_MouseHover(object sender, EventArgs e) { //MessageBox.Show("hello"); ToolTip toolTip1 = new ToolTip(); // Set up the delays for the ToolTip. toolTip1.BackColor = Color.Azure; toolTip1.AutoPopDelay = 2000; toolTip1.InitialDelay = 1000; toolTip1.ReshowDelay = 500; // Force the ToolTip text to be displayed. toolTip1.ShowAlways = true; // Set up the ToolTip text for the button toolTip1.SetToolTip(this.button1, "hello NT5763!"); }2. 如果你能找到button的ToolTip属性,那可直接进行编辑,应该也能工作。
{
//MessageBox.Show("hello");
ToolTip toolTip1 = new ToolTip(); // Set up the delays for the ToolTip.
toolTip1.BackColor = Color.Azure;
toolTip1.AutoPopDelay = 2000;
toolTip1.InitialDelay = 1000;
toolTip1.ReshowDelay = 500; // Force the ToolTip text to be displayed.
toolTip1.ShowAlways = true; // Set up the ToolTip text for the button
toolTip1.SetToolTip(this.button1, "hello NT5763!");
}2. 如果你能找到button的ToolTip属性,那可直接进行编辑,应该也能工作。
{
toolTip1.SetToolTip(this.button1, "按下");
}
欢迎使用CSDN 小秘书
***********************************************************[/align]