if (textBox1.Value == "mittensonfire") { MessageBox.Show("You are very leet"); } else { MessageBox.Show("You are very gay"); } |
If statement problems
Hi, I'm very new to the C# community I have been working on a program that uses username recongnicition and I have a question. Here is my code

If statement problems
RobertG1
Check the code snippet below:
if
(textBox1.Text == "mittensonfire"){
MessageBox.Show("You are very leet");}
else{
MessageBox.Show("You are very gay");}
Vikram
Mifuyne
I'm not near a Development machine but I'm pretty sure the textbox doesn't have a value property. I think what you are trying to do is "textBox1.Text =="
Tom
Argonautic
Nate52
ghazi