Explain the key events in the life-cycle of the windows form?

 Posted by vishalneeraj-24503 on 10/8/2014 | Category: Windows Forms Interview questions | Views: 5881 | Points: 40

Life-cycle of the windows form are:-
a. Load: fired when form is first loaded in the application
b. Activated: fired whenever the form gets the focus i.e. when loaded first time, restored from the minimize state, whenever the form is brought in front.
c. Deactivated: fired whenever the form looses focus i.e. when form is closed, minimized, when it is in background.
d. Closing: Triggered when application wishes to be closed.
e. Closed: Triggered when application is closed.
f. Disposed: Used for garbage collection.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response