Share via


PageFrame Control

Creates a page frame to contain Page objects.

A page frame is a container object that contains pages, which can contain controls.

Note   For a page frame to be visible, it must be added to a form.

PageFrame

Remarks

The page frame defines global characteristics of the page: size and positioning, border style, which page is active, and so on. The page frame determines the location of the pages and how much of each page is visible. Pages are positioned at the top left corner of the page frame. If the page frame is moved, the pages move with the page frame.

A page frame contains individual pages that are named Page1, Page2, Page3, and so on by default.

Note   Only the active page is refreshed when the FormRefresh method occurs for the form on which the page is located.

The PageFrameThemes property provides a gradient effect on Page objects, so a label, option button, or similar control with text does not appear correctly if the BackStyle property of the control is set to Opaque. You can remedy this situation by setting BackStyle to Transparent.

For additional information about creating pages and page frames, see "Adding Page Frames to a Form" in Extending Forms.

See Also

PageFrame Control Properties, Methods and Events | CREATE FORM | CREATE CLASS | DEFINE CLASS | Page Object