

Graphics will only enable you to create a simple design. Using the line and shape controls to draw
#MICROSOFT VISUAL BASIC FOR APPLICATIONS 400 CODE#
The procedure for the common dialog box to present the standard colorsīackground color of the shape by clicking on a particular color on theĬommon dialog box as shown in the Figure 18.1 below: The Code List of items can be added to the list box through the AddItem method. After that, the Microsoft Common Dialog ControlĦ.0 will appear in the toolbox and you can drag it into the form. The menu and then select the Microsoft Common Dialog Control 6.0 byĬlicking the check box.

The common dialog box can be inserted by clicking on ‘project’ on Options from a list box, as well as changing its color through a commonĪre a list box, a command button, a shape control and a common dialogīox. User to change the shape by selecting a particular shape from a list of You can change its background color using the BackColor property, itsīorder style using the BorderStyle property, its border color using theīorderColor property as well its border width using the BorderWidth Shape property’s value to 1, 2, 3, 4, and 5 respectively. Shape to square, oval, circle and rounded rectangle by changing the Is a rectangle, with the default shape property set at 0. On the shape control and draw the shape on the form. After drawing the line, you can then change its color, width and style using the BorderColor, BorderWidth and BorderStyle properties.Similarly, to draw a shape, just click To draw a straight line, just click on the line control and then use your mouse to draw the line on the form. Image box and the picture box 18.1 The line and Shape controls There are four basic controls in VB6 that you can use toĭraw graphics on your form: the line control, the shape control, the

However, in Visual Basic 6, these jobs haveīeen made easy. In the old BASIC, drawing and designing graphics areĬonsidered difficult jobs, as they have to be programmed line by line Visual basic programming because an attractive user interface will be appealing to
