Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

84 Part I Getting Started with Microsoft Visual Basic 2010


Run the Radio Button program

Tip The complete Radio Button program is located in the C:\Vb10sbs\Chap03\Radio
Button folder.


  1. Click the Start Debugging button on the Standard toolbar.


Visual Basic runs the program in the IDE. The desktop PC image appears in a picture
box on the form, and the first radio button is selected.


  1. Click the second radio button (Desktop Mac).


Visual Basic displays the image, as shown here:


  1. Click the third radio button (Laptop).


The laptop image appears.


  1. Click the first radio button (Desktop PC).


The desktop PC image appears again. It appears that each of the three
CheckedChanged event procedures is loading the images just fine. Nice work.


  1. Click the Close button on the form to end the program.


Perfect. You’re finished working with radio buttons and group boxes for now. But can
you imagine how you might use them on your own in a program?

Processing Input with List Boxes


As you well know from your own use of Windows, one of the key mechanisms for getting
input from the user—in addition to check boxes and radio buttons—are basic list boxes,
Free download pdf