Yordy
Yordy

Reputation: 1

How can I Get ErrorProvider's Tooltip?

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

Upvotes: 0

Views: 37

Answers (1)

Mary
Mary

Reputation: 15091

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

Upvotes: 0

Related Questions