且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

永远使用 C# 的 Windows 窗体工具提示

更新时间:2023-12-06 09:00:58

来自 MSDN:

有多个延迟值您可以为 Windows 窗体设置工具提示组件.单位所有这些属性的度量是毫秒.初始延迟属性决定了用户多长时间必须指向相关控件用于显示工具提示字符串.ReshowDelay 属性设置花费的毫秒数后续出现的工具提示字符串当鼠标从一个移动ToolTip 关联的控件到另一个.AutoPopDelay 属性决定ToolTip 字符串的时间长度显示.您可以设置这些值单独或通过设置值AutomaticDelay 属性的;这其他延迟属性是基于设置的在分配给的值上自动延迟属性.例如,当 AutomaticDelay 设置为一个值时N,InitialDelay 设置为 N,ReshowDelay 设置为AutomaticDelay 除以五(或N/5),并且 AutoPopDelay 设置为价值的五倍AutomaticDelay 属性(或 5N).

There are multiple delay values that you can set for a Windows Forms ToolTip component. The unit of measure for all these properties is milliseconds. The InitialDelay property determines how long the user must point at the associated control for the ToolTip string to appear. The ReshowDelay property sets the number of milliseconds it takes for subsequent ToolTip strings to appear as the mouse moves from one ToolTip-associated control to another. The AutoPopDelay property determines the length of time the ToolTip string is shown. You can set these values individually, or by setting the value of the AutomaticDelay property; the other delay properties are set based on the value assigned to the AutomaticDelay property. For example, when AutomaticDelay is set to a value N, InitialDelay is set to N, ReshowDelay is set to the value of AutomaticDelay divided by five (or N/5), and AutoPopDelay is set to a value that is five times the value of the AutomaticDelay property (or 5N).

有关此主题的更多信息,请查看此处:

For more information on this subject, look here:

使工具提示在 Visual Basic .NET 中长时间保持可见一个>

堆栈溢出问题我可以为 .NET Windows 窗体窗口中的工具提示设置无限的 AutoPopDelay 吗?

Stack Overflow question Can I set an infinite AutoPopDelay for a tooltip in a .NET Windows Forms window?

无限超时的工具提示?