I currently have a form that has a label appear when there is an error with changing your password.
Currently there is a bug that makes a message pop up even when the change is successful that says, "Object reference not set to an instance of an object."
I'm wanting to write a test that says when the label is equal to that message to make the visibility false. I've tried:
If lblMsg.Text = "Object reference not set to an instance of an object." Then
lblMsg.Visible = False
End If
This, among other variations, have yet to work successfully for me.
Any idea on what other ways I can write this out to hide the label when that message occurs?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire