我的tooltip代码如下:
private void textEdit1_MouseEnter(object sender, EventArgs e)
{ string text1 = textEdit1.Text;
ToolTip toolTip1 = new ToolTip();
toolTip1.AutoPopDelay = 5000;
toolTip1.InitialDelay = 500;
toolTip1.ReshowDelay = 100;
toolTip1.ShowAlways = true;
toolTip1.SetToolTip(this.textEdit1, text1);
}
但是在鼠标指向textEdit上时,鼠标在textEdit框边缘为鼠标状可以显示,但是鼠标在textEdit框中间显示光标状,就没有tooltip了,我怎么让鼠标移动到textEdit中一直是鼠标状而且有tooltip提示呢?
private void textEdit1_MouseEnter(object sender, EventArgs e)
{ string text1 = textEdit1.Text;
ToolTip toolTip1 = new ToolTip();
toolTip1.AutoPopDelay = 5000;
toolTip1.InitialDelay = 500;
toolTip1.ReshowDelay = 100;
toolTip1.ShowAlways = true;
toolTip1.SetToolTip(this.textEdit1, text1);
}
但是在鼠标指向textEdit上时,鼠标在textEdit框边缘为鼠标状可以显示,但是鼠标在textEdit框中间显示光标状,就没有tooltip了,我怎么让鼠标移动到textEdit中一直是鼠标状而且有tooltip提示呢?
解决方案 »
- 安装包快捷桌面和更新问题
- DataTable的ExtendedProperties问题!
- C#中有DBTreeView吗?
- 图片移动
- 问一个关于dataset所连接的数据库表的问题,怎么使用数据库表的一个属性ROWS.Count
- Winform中获得多个CheckBox的Tag,Text,并把得到的多个tag,Text之间用逗号分开
- 求教,关于属性set的迷惑
- 怎样在vs2005中开发出的dll 可以被系统注册,任何程序都可以使用...
- 验证码的波形滤镜效果——使用正弦曲线Wave扭曲图片
- 菜鸟关于C#的两个小问题
- C#如何调用GDI+在内存中画图并保存到本地?
- C#将字符串加密成数字,可逆解密,能实现不?
你用一个全局的toolTip试试,不要频繁new