toolTip1.Active = true; //激活工具提示,只有激活才会显示提示
toolTip1.IsBalloon = true; //toolTip以气泡形式出现
toolTip1.Show("需要提示的内容",textBox1); //这样会一直显示提示文本,需要点击才会消失
也可以控制提示文本持续时间
toolTip1.Show("需要提示的内容",textBox1,3000); //提示文本持续3秒,3秒后自动消失
用Show的话存在一个问题,toolTip箭头第一次会指向下面,第二次才会正常显示,如下图这样
改为这样就可以决解上面的问题
toolTip1.IsBalloon = true;
toolTip1.Active = false;
toolTip1.Show("",textBox1);
toolTip1.Active = true;
toolTip1.Show("此处不能为空",textBox1);
toolTip1.Show();有很多重载方法,其中有包括位置设置的