Using Visual Inheritance

Create a Windows form by using the Windows Forms Designer:

  • Create a Windows form by using visual inheritance

Earlier in this chapter, in the section “Understanding Classes, Inheritance, and Namespaces,” you learned that when a class inherits from its base class, it derives a basic set of functionality from the base class. No additional programming needs to be done in the derived class to enable that functionality. You are free to add extra functionality to the derived class to make it yet more useful.

Because a Windows form is a class, inheritance applies to it. In some cases you will find yourself creating new forms that are almost like ones you have previously created, but the new forms need some additional functionality. ...

Get MCAD/MCSD.NET Training Guide (Exam 70-316): Developing and Implementing Windows®-Based Applications with Microsoft® Visual C#™ .NET and Microsoft® Visual Studio® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.