移到控件上就显示,鼠标移开就消失,而不是放上去后过几秒就消失了.
修改了所有的属性,好象都没用啊.
修改了所有的属性,好象都没用啊.
解决方案 »
- C# winform 导成Excel
- 用按钮实现datagridveiw中的上下箭头移动选择行功能
- xna从流创建Texture2D如何设置黑色背景为透明!????
- winsock2.h中的结构in_addr在C#中如何写?
- 怎样加密宏狗口令?
- 数据源问题
- c# winform 如何获得http://qq.ip138.com/weather/xinjiang/WuLuMuQi.htm这个网址中的天气预报
- C#做的WAP站在手机里访问出现403.9用户过多的错误,但在本机模拟器就没有问题,请问是什么原因呢
- 关于如何创建EXCEL文件问题?
- system.net引用的问题!
- 大家好,在C#中怎么把要打印的数据传递给LPT1口?
- 高手请进,顶贴有分.请问winForm富文本框有没有什么方法,或写代码,把文本转换为html 啊?
在MOUSEOUT事件中设置它的显示时间为0不就行了
用LABel做,然后根据鼠标的位置,设置label显示的位置!
一直显示就不是ToolTip了
鼠标移上去才提示,移开就消失啊.或者让ToolTip能显示长些时间也行.
自己做很麻烦的,因为ToolTip可以在窗口之外的地方显示.还有自适应性.
这个不行嘛??
也许是客户的要求吧……有些客户要求很bt的。
// This example assumes that the Form_Load event handling method
// is connected to the Load event of the form.
private void Form1_Load(object sender, System.EventArgs e)
{
// 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 = 1000;
toolTip1.ReshowDelay = 500;
// 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, "My button1");
toolTip1.SetToolTip(this.checkBox1, "My checkBox1");
}
http://chs.gotdotnet.com/quickstart/util/srcview.aspx?path=/quickstart/winforms/Samples/ControlReference/ToolTipCtl/ToolTipCtl.src&file=CS\ToolTipCtl.cs&font=3
toolTip1.AutoPopDelay = 25000;
toolTip1.InitialDelay = 1000;
toolTip1.ReshowDelay = 0;
// 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( btnDConvert, "My button1");