Changes

C Sharp and Windows Forms

81 bytes added, 19:13, 24 January 2008
Changing The Form Background Image
In addition to changing the background color of a form, it is also possible to specify a background image. This is specified using the form's ''BackgroundImage'' property in the ''Properties'' panel. When the ''BackgroundImage'' property is selected in the Property panel a button containing the label '...' appears. Click on this button to display the ''Select Resource'' window:
[[Image:visual_studio_select_resource.jpg|Selecting a 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 shows a form with a background image and a Button control:
[[Image:visual_basic_form_background_imagec_sharp_form_background_image.jpg|A Visual Studio Form with a custom background image]]
If the image used for the background is smaller than the form size, windows will use multiple copies of the image in a tile arrangement to ensure the entire available area is filled.