1

Does anyone know how to make the ErrorProvider's message stay visible when the mouse is over the ErrorProvider's icon? The message goes away or becomes not visible after a few seconds. People are complaining that there isn't enough time to read the message and they have to move the mouse away then back onto to the icon to see the message again.

Edit: Tried Steve's suggestion (below) but the message still goes away

    ErrorProvider1.BlinkRate = ErrorBlinkStyle.NeverBlink
    ErrorProvider1.BlinkStyle = ErrorBlinkStyle.NeverBlink
    ErrorProvider1.SetError(Me.TextBox1, "Error")


This link Set ErrorProvider ToolTip Duration asks the exact same question I'm trying to ask here, unfortunately the question in the link is unanswered too.

4

1 回答 1

2

VB 2012,框架 3.5,Windows 窗体应用程序。由于我不知道的原因,如果将 设置BlinkRate为 10 到大约 4500 之间的某个值,并且BlinkStyle = ErrorBlinkStyle.AlwaysBlink只要将鼠标悬停在 ErrorProvider 的图标上,ErrorProvider 的工具提示/消息就会无限期地保持可见。

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
    ErrorProvider.BlinkRate = 250
    ErrorProvider.BlinkStyle = ErrorBlinkStyle.AlwaysBlink
End Sub
于 2015-02-03T22:58:51.147 回答