I am using the following code to try to set the Textbox value as 0 when textbox1.text ="".
if(textbox1.text=="")
{
int.Parse(textbox1.Text) == 0.ToString();
}
However I recieve the following error:
Error: CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement.
How do I set the textbox value to 0 in C#?