Jump to: navigation, search

Visual Basic and Forms

1,106 bytes added, 19:45, 18 July 2007
Changing The Form Background Image
Click on the ''Local Resource'' option button and click on ''Import'' to browse for an image. If you don't have any images of your own readily available try looking in for the ''Sample Pictures'' folder in ''My Documents''.
Once selected the image will be applied to the form background and any controls added will appear on top of the image. The following figure show shows a form with a background image and a Button control:
== Configuring the Minimize, Maximize and Close Buttons ==
Each window in a Windows application has, by default, Minimize, Maximize and Close buttons in the top left hand corner of the title bar. In addition, clicking on the icon on the right hand side of the title bar drops down a control box containing the same options, plus options to resize the window.
These options make it easy for the user to perform tasks such as minimizing or maximizing a form. If, however, you do not want these controls to be available for a particular form they can be disabled from the ''Properties'' panel for the form in question. To disable the Maximize button set the ''MaximizeBox'' property to ''False''. Similarly, disable the ''Minimize'' button by setting the ''MinimizeBox'' property to False. In each case the button will still be visible, but will be disabled so the user cannot click on it.
To remove all controls, including the Control Box and the Minimize, Maximize and Close buttons set the ''ControlBox'' property to false. When set, the only content in the form's toolbar will be the form title.

Navigation menu