Assume certain facts. Points is the name of an int variable, and TextBox is the name of a TextBox control. Create an if-else statement that converts the Text property of the pointsTextBox control to an int and saves the result in the points variable using one of the TryParse methods. If the conversion fails, a message box will appear with an error message.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here