Explain the key events in the Lifecycle of the form.

 Posted by vishalneeraj-24503 on 9/4/2014 | Category: Windows Forms Interview questions | Views: 1101 | Points: 40
Answer:

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