Sum of Numbers
Create an application that displays a form similar to the one shown in Figure 1. When the Enter Numbers button is clicked, the application should display the input box shown in Figure 2.
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 3.
Figure 1 Sum of Numbers form

Figure 2 Sum of Numbers input box

Figure 3 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:
Value | Sum |
5 | 15 |
10 | 55 |
20 | 210 |
100 | 5050 |
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.