[RESOLVED] please help, beginners question
Code:
If Answer = "=,<>,>,<,>=,<=" Then
Label1.Text = "Great!"
Else : Label1.Text = "Please enter the answer exactly as here in the program..."
Now after "please enter the answer.." i want it that Label2.Text also say something but i dont know what i must type im confused.
Re: please help, beginners question
Ohhh nevermind i got it just Label2.Text = "" i feel stupid now
Re: [RESOLVED] please help, beginners question
Just a couple of tips:
1. Don't leave it up the the IDE to assign your control names.
Label1 and Label2 may work very well when you have 3 or 4 controls on a form, but when that number goes up, you're going to find your code harder and harder to understand.
2. Use the following code to assign empty string values:
Code:
Label2.Text = string.Empty