Write a program containing the two forms shown below. Initially, the Number form appears. When the Show Push Buttons button is clicked, the Push Buttons form appears. The user enters a number by clicking on successive push buttons and then clicking on Enter to have the number transferred to the read-only text box at the bottom of the first form.
Suggested Control Names and Attributes for the Number form:
Name Property | Text Property | Control Type | Notes |
frmNumber | Number | Form | Holds Controls |
btnShow | Show Push Buttons | Button | Triggers event to open Push Button form. |
txtNumber | TextBox | Displays phone number. Read only. |
Suggested Control Names and Attributes for the Push Buttons form:
Name Property | Text Property | Control Type | Notes |
frmPushButtons | Push Buttons | Form | Holds Controls |
btnOne | 1 | Button | Enter a 1 |
btnTwo | 2 | Button | Enter a 2 |
btnThree | 3 | Button | Enter a 3 |
btnFour | 4 | Button | Enter a 4 |
btnFive | 5 | Button | Enter a 5 |
btnSix | 6 | Button | Enter a 6 |
btnSeven | 7 | Button | Enter a 7 |
btnEight | 8 | Button | Enter a 8 |
btnNine | 9 | Button | Enter a 9 |
btnStar | * | Button | Just for looks. Doesn’t do anything. |
btnZero | 0 | Button | Enter a 0 |
btnPound | # | Button | Just for looks. Doesn’t do anything. |
txtNumber | Button | Displays number so far. Read only. | |
btnClear | Clear | Button | Triggers event to clear the number |
btnEnter | Enter | Button | Triggers event to return to Number form with new number |