rajesh.forum
Well-known member
- Joined
- Sep 7, 2007
- Messages
- 55
- Programming Experience
- Beginner
this s the sample code i ve using..but here i need to hide the error provider
if i select any other item other than "::select::"
Private Sub cbDesignation_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles cbDesignation.Validating
Dim err As New ErrorProvider
If Me.cbDesignation.Text = "::Select::" Then
err.SetError(cbDesignation, "Field is Required")
ElseIf Me.cbDesignation.Text <> "::Select::" Then
err.SetError(cbDesignation, "")
End If
End Sub
if i select any other item other than "::select::"
Private Sub cbDesignation_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles cbDesignation.Validating
Dim err As New ErrorProvider
If Me.cbDesignation.Text = "::Select::" Then
err.SetError(cbDesignation, "Field is Required")
ElseIf Me.cbDesignation.Text <> "::Select::" Then
err.SetError(cbDesignation, "")
End If
End Sub