How can I Get ErrorProvider's Tooltip?

34 Views Asked by At

I need some help to get the ErrorProvider's tooltip from 3rd party app. Is there any sample to make it work? I am working with VB NET

1

There are 1 best solutions below

0
Mary On

I don't understand what you mean by 3rd party app. To see the tool tip the user would move the cursor over the red circle that appears next to the text box.

Private err As New ErrorProvider()
Private Sub TextBox1_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles TextBox1.Validating
    If TextBox1.Text = "" Then
        e.Cancel = True
        err.SetError(TextBox1, "This text box cannot be blank.")
    Else
        err.Clear()
    End If
End Sub