Sunday, January 31, 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.

0 Comments: