Search code examples
vb.neterrorprovider

VB.NET 2012, how to make ErrorProvider's message stay visible?


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.


Solution

  • VB 2012, Framework 3.5, Windows Forms Application. For reasons unknown to me, if one sets the BlinkRate to something between 10 and approx 4500 and sets the BlinkStyle = ErrorBlinkStyle.AlwaysBlink the ErrorProvider's tooltip / message will stay visible indefinitely as long as the mouse is hovered over the ErrorProvider's icon.

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
        ErrorProvider.BlinkRate = 250
        ErrorProvider.BlinkStyle = ErrorBlinkStyle.AlwaysBlink
    End Sub