Programming Steps


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:

  1. Create the user interface.

  2. Set the properties.

  3. 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



Microsoft Visual Basic 2005 Step by Step
Microsoft Visual Basic 2005 Step by Step (Step by Step (Microsoft))
ISBN: B003E7EV06
EAN: N/A
Year: 2003
Pages: 168

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net