How to create windows forms using visual inheritance - C#.NET

Explain how to create windows forms using visual inheritance.

Steps:

1. Create a windows form called the basewindow
2. Add a menu bar on this form
3. Right click on the solution explorer and select add new item
4. Select inherited form
5. From the dialogue box choose basewindow form.
6. Name the new form as the childform
7. Now the new childform would have a menu from the baseform.
8. We can place as many controls on baseform as we want to.
Key events in the lifecycle of the form - C#.NET
Explain the key events in the lifecycle of the form - Load: fired when form is first loaded in the application...
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....
Post your comment