Chapter 11 discussed how to create classes by inheriting from other classes. We have also used inheritance to create
Forms that display a GUI, by deriving our new
Form classes from class
System.Windows.Forms.Form. This is an example of visual inheritance. The derived
Form class contains the functionality of its
Form base class, including any base-class properties, methods, variables and controls. The derived class also inherits all visual aspects—such as sizing, component layout, spacing between GUI components, colors and fonts—from its base class.
Visual inheritance enables you to achieve visual consistency across apps. For example, you could define a base
Form that contains a product’s logo, a specific background color, ...