Make a simple alteration to the interface, such as changing background colour, at run time. This technique will be used again, but instead of simply loading one icon, we will explore how to give the user a choice and load one or more of a selection of icons. The syntax of the LoadPicture command is given again below. This statement loads the icon specified in the path between the quotation marks, into the picture box called Picture1 . Use VB on-line help to complete the following exercises.
Option Buttons Create an application which operates like the screen shots below.
All the icons required can be found in the icon library. If you create the frame first and then add the option buttons by single clicking on the toolbox and dragging the cross hair cursor on the frame to create the controls, they will be attached to the frame and will move with it if you decide to re-position the frame. Notice, however, that if you create the frame first and double click the screen controls, then drag them from the centre of the form on to the frame, they will not be attached to it and will be left behind when you try to move the frame. Try this out. You can alter the option that has the focus first, by selecting one of the other option buttons and setting its property tabindex to 1.