In this exercise, you code an application that displays the balance in a savings account.
a. Create a Visual Basic Windows application. Use the following names for the solution and project, respectively: Balance Solution and Balance Project. Save the application in the ClearlyVB2012Chap19 folder. Change the name of the form file on your disk to frmMain.vb. If necessary, change the formâ€™s name to frmMain.
b. Create the interface shown in Figure 19-18.
c. The text box should accept only numbers, the period, and the Backspace key. Code the appropriate event procedure.
d. The contents of the Current balance box should be cleared when a change is made to the contents of the text box. It should also be cleared each time the user selects a different radio button. Code the appropriate event procedures, using an independent Sub procedure.
e. The formâ€™s Load event procedure should prompt the user to enter the beginning balance and then display that amount in the Current balance box. The Calculate buttonâ€™s Click event procedure should either add the deposit to the current balance or subtract the withdrawal from the current balance. The procedure should display the current balance in the Current balance box. Code the procedures.
f. Save the solution and then start and test the application. (Hint: Using 500 as the beginning balance, 10 as a deposit, 50 as a withdrawal, and 65.75 as a deposit, the Current balance box should display 525.75.) Close the Code Editor window and then close the solution.