Saturday, February 6, 2010

.NET form

Describe .NET form.

Forms provide a User Interface (UI) to give the applications a look and feel. Forms provide properties, methods, and events for the controls they contain. In Microsoft Visual Studio .NET, there is drag-and-drop facility for creating Web applications.

Forms have two components associated with them

The UI with controls and
the code behind the form

What are Form properties?

The common properties that all of the controls on form have are:

Font
ForeColor
Modifiers
TabIndex
Visible
Width
BackColor
Enabled

What are Form methods that control its lifecycle?

First a form object is created using the constructor. The form is then loaded and then its layout is initialized. After that it gets activated after which the paint is called.

The reverse procedure is followed to remove it. First comes closing, then the form gets deactivated and then the dispose is called for the deallocation

No comments:

Post a Comment