error provider icon...
-
the error provider icon is always visible on the program run,even if there is no error! please,help...
csetopper_bhanu
-
the error provider icon is always visible on the program run,even if there is no error! please,help...
csetopper_bhanu
Hello, It seems that the condition for errorprovider is not set properly. Let me give you a very simple example where we will display an errorprovider for a Textbox when alphanumeric values are entered.
Private Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged Dim num As Integer = 0 If Not TextBox1.Text.Equals("") Then If Not IsNumeric(TextBox1.Text) Then ErrorProvider1.SetError(TextBox1, "Please enter numeric value") Else ErrorProvider1.Dispose() End If End If End Sub
I hope this helps. In case the issue persists, just provide the code where you have implmented the errorprovider. Regards, AllenAllen Smith Software Engineer ComponentOne LLC www.componentone.com