I have a textBox1 in my C# project. How can i use the IF statement if the value of textBox1 is greater than or equal to 75, the remarks is "Passed" else "Failed".
I used:
int a;
string remarks;
a = int.Parse(textBox1.Text);
If (a>=75) then
remarks="Passed"
Else
remarks="Failed"
End If
Kindly correct this?


Reply With Quote