C#笔记

鼠标附上去会出现提示:(在textBox13的MouseHover事件中编写代码)
private void textBox13_MouseHover(object sender, EventArgs e)
{
ToolTip toolTip1 = new ToolTip();
toolTip1.AutoPopDelay = 5000;
toolTip1.InitialDelay = 500;
toolTip1.ReshowDelay = 50;
toolTip1.ShowAlways = true;
toolTip1.SetToolTip(textBox13, "请输入账号");
}

posted on 2019-06-14 16:21  Snotling  阅读(75)  评论(0)    收藏  举报