How would I parse an empty string? int.Parse(Textbox1.text)
gives me an error:
Input string was not in a correct format.
System.FormatException: Input string was not in a correct format.
If the text is empty (Textbox1.text = ''
), it throws this error. I understand this error but not sure how to correct this.