Key events in the lifecycle of the form - C#.NET

Explain the key events in the lifecycle of the form.

1. Load: fired when form is first loaded in the application
2. 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.
3. Deactivated: fired whenever the form looses focus i.e. when form is closed, minimized, when it is in background.
4. Closing: Triggered when application wishes to be closed.
5. Closed: Triggered when application is closed.
6. Disposed: Used for garbage collection.
Steps to create menus - C#.NET
.MenuItem item1=new MenuItem();....
What is Anchoring a control and Docking a control? - C#.NET
What is Anchoring a control and Docking a control? - Anchoring: used to resize controls dynamically with the form....
What is ErrorProvider control? - C#.NET
What is ErrorProvider control? - It is a control to provide a feedback about another control that has an error...
Post your comment