windowsforms-2867-controls-and-libraries-form-layout-managers-layout-and-data-layout-controls-layout-control-using-a-layoutcontrol-in-inherited-forms.md
Microsoft Visual Studio provides the Visual Inheritance (VI) feature that allows a developer to design a base form (user control) and then inherit it at design time; extending it by adding new controls and customizing inherited ones. However, VI has some limitations on using composite controls (including the LayoutControl) on inherited forms.
The Layout Control does not support design-time modifications in inherited forms when using Windows Forms Visual Inheritance (VI). Thus, if you are utilizing the Layout Control in inherited forms, it is necessary to consider the following.
To avoid accidental modification of the LayoutControl and its items within inherited forms, you can make these objects private within the base form.
Assume that you need to create a base form with a LayoutControl used to arrange all controls, and wish to use VI to clone the layout within inherited forms. The layout can be divided into three rectangular regions, as illustrated in the image below.
The A and B regions will be reproduced without modification in all inherited forms, while region C is unique for each inherited form. To meet the VI rules, instead of creating a base form with a single LayoutControl, you should use three layout controls, as outlined below.
With this solution, there is no need to customize the layout of inherited LayoutControls, which allows you to avoid potential problems with VI.
See Also