Lab 5
comp 125-609, Goldwasser
Tuesday, September 28, 1999
Purpose: Using control arrays.
We are going to make a very rudimentary typewriter, where the user
clicks on pictures of keys to type.
At design time, your form should have the following three controls,
a command button named key, another command button named
clear, and a picture box named display. The
initial properties should be set as follows:
| Object
| Property
| Setting
|
| Form1 | Width | 7500 |
| Form1 | Height | 2025 |
| key | Caption | A |
| key | Height | 375 |
| key | Width | 255 |
| key | Top | 120 |
| key | Left | 240 |
| key | Index | 0 |
| clear | Height | 255 |
| clear | Width | 975 |
| clear | Top | 600 |
| clear | Left | 240 |
| display | Height | 495 |
| display | Width | 6855 |
| display | Top | 960 |
| display | Left | 240 |
| display | Font | CourierNew |
The rest of the program will be in designing the event handlers.
You should do three things:
This lab is due before leaving class today. When you have completed
the program you should do the following:
(1) Please call me over to your computer to run your program