Start a new project. Add a textbox, a Label and a button to your new Form. Then write a programme that does the following:
- Asks users to enter a number from 1 to 20.
- The number will be entered into the Textbox.
- When the Button is clicked, your Visual Basic code will check the number entered in the Textbox.
- If it is between less than or equal to 20, then a message will be displayed.
- The message box will display the number from the Textbox.
- If the number entered is greater than 20 then the user will be invited to try again, and whatever was entered in the Textbox will be erased.
- If the number entered is greater than 99, a message will prompt that it reach the maximum extended number.
Labels: VB.NET