Sum of Numbers
Create an application that displays a form similar to the one shown in Figure 5-44. When the Enter Numbers button is clicked the application should display the input box shown in Figure 5-45.
The Sum of Numbers Problem
The input box asks the user to enter a positive integer value. Notice that the default input value is 10. When the OK button is clicked the application should display a message box with the sum of all the integers from 1 through the value entered by the user as shown in Figure 5-46.
Figure 5-44 Sum of Numbers form Figure 5-45 Sum of Numbers input box Figure 5-46 Sum of Numbers message box If the user enters a negative value the application should display an error message. Use the following test data to determine if the application is calculating properly:
This is to be created in Visual Basic. Book is called Starting out With Visual Basic-7th Edition. Challenge is on page 370. File must be in a compressed (zipped) folder. Please do not respond if not able to assist.