
Ross Sheppard High School
Computer Programming 20
Student Learning Guide
Random Number Programs
| When you have finished this project, you will be able to: | |
| program a Beep | |
| use the random number generator | |
| use multiple forms | |
| know how to make use of user input | |
|
describe the following terms:
|

| The Random Number Program When the user clicks the Spin Button or selects Spin from the File Menu, a number be randomly selected and printed in the textBox. If the user selects exit, a confirmation dialog box will appear providing a choice of quitting or not. Clicking the About menu item will cause an information screen to appear. |
| Object | Property | Setting |
| Form | Name | frmRandomNumber |
| Caption | The Random Number Program | |
| Icon | Choose an icon | |
| BackColor | Choose a color | |
| StartUpPosition | Screen Center | |
| CommandButton | Name | btnSpin |
| Caption | Spin | |
| Font | Choose a font | |
| TextBox | Name | txtRandomNumber |
| Text | Make it blank | |
| Font | Choose a font | |
| Alignment | Center |
| Caption | Name | Properties |
| &File | Name | mnuFile |
| &Spin | Name | mnuSpin File-sub-menu |
| E&xit | Name | mnuExit File-sub-menu |
| &About | Name | mnuAbout |





