Share via


Visual Basic Forms: Limitations with Properties and Nested Controls

OverviewHow Do I

Several properties of Visual Basic controls are implemented only by Visual Basic and have no equivalent in Windows dialog boxes and controls. Examples include setting font and color properties for individual controls.

Nested controls, possible in Visual Basic, do not translate into the Visual C++ environment. In the Visual Basic environment, controls can be nested inside of each other. You can set the Visible state of all of the nested controls by setting the outermost control to Visible. In the Visual C++ environment, the visibility of the controls is a run-time feature.

One solution is to move the overlapping controls into separate dialog boxes. Then have the code create the dialog boxes as needed, with the main dialog box as a parent window.

See Also   , , , , , , ,