|
.NET form - August 25, 2008 at 18:00 PM by Amit Satpute
Describe .NET form.
Answer
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?
Answer
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?
Answer
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.
|