Wednesday, February 25, 2009

Form Properties

Many properties of a form affect its physical appearance. The Caption property determines the text that is shown in the form's title bar, the Icon property sets the icon that is displayed when a form is minimized.
The MaxButton and MinButton properties determine whether the form can be maximized or minimized. By changing the BorderStyle property, you can control the resizing behavior of the form.

There are some specific properties of the form and a brief description of some selected properties is given here.

Property window of a form is shown below:


Border Style:
Form can have different types of borders.

The borders are as follows:


Caption:
The title of the window is stored in Caption property.It is shown at top of the form.

Icon:
This property specifies the icon for the window in the upper-left corner of the window.

Mouse Pointer:
This displays the value that indicates the type of mouse pointer.

Max Button:
This property indicates whether the maximize Button should be shown and Maximize choice available in the control box menu.

Min Button:
This property indicates whether the minimize Button should be shown and minimize choice available in the control box menu.

MDI Child:
This property specifies if this window must be shown within a multiple document interface (MDI) window. You will discuss them in detail in further section of tutorial.

Back Color:
Back Color is used to fill the back ground color of the form.

Autoredraw:
Setting AutoRedraw to True always produces normal layering. While using AutoRedraw is the easiest way to layer graphics, applications with large forms may suffer from reduced performance due to the memory demands of Autoredraw.

For Example:
By setting Autoredraw property of form to true ,You print any text at the form.

No comments: