Option Buttons are very useful and will provide a program with a professional looking interface(if you do it right anyway.) First click the toolbar button for making option buttons. Take your mouse back to your form and drag to make an option button. Make four in all. Call the first OptionUp. The second call OptionDown. The third call OptionLeft and the fourth OptionRight. Now make a label and call the label ChoiceLbl. Change the Label caption to Up.
Good, now double click on OptionUp. This action will pull up OptionUp's sub routine in the code window. Inside of the sub put the following:
ChoiceLbl.Caption = "Up"
Now go back to the object window and double click on OptionDown. Put the same code into its sub routine, except change "Up" to "Down". I am sure you have the idea, so do the same for OptionLeft and OptionRight. Now run your program. Notice how Visual Basic automatically undots(or however you say that) the last option and redots the new option. Pretty cool? If you need help you can download the sample program here.
Copyright ©2000 by Kyle Baker. Please read our disclaimer.