Programming Steps
The Lucky Seven user interface contains two buttons, three lucky number boxes, a digital photo depicting your winnings, and the label “Lucky Seven.” I produced these elements by creating seven objects on the Lucky Seven form and then changing several properties for each object. After I designed the interface, I added program code for the Spin and End buttons to process the user's button clicks and produce the random numbers. To re-create Lucky Seven, you'll follow three essential programming steps in Visual Basic:
Create the user interface.
Set the properties.
Write the program code.
The following table summarizes the process for Lucky Seven.
Programming step | Number of items |
1. Create the user interface. | 7 objects |
2. Set the properties. | 13 properties |
3. Write the program code. | 2 objects |