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 . Task 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. A welcome addition to Windows 95 and NT is the ability to preview icons and cursors in the 'Open Picture' dialog box as shown below. 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. At present the application has no quit mechanism, you have to stop it by selecting from the toolbar.