Share via


Display Different Pages without Tabs Sample

File: ...\Samples\Solution\Controls\PgFrame\Pfsam2.scx

This sample demonstrates manipulating pages without tabs in a form page. The frame in the middle of the form contains three pages that are brought to the front as the user chooses command buttons. Each page can have its own controls and appearance.

The method that brings a particular page to the front is ZOrder. For example, the following line of code in the click event of one of the command buttons brings pagCustomers to the front:

THISFORM.pgfPeople.pagCustomers.ZOrder

You can also use the ActivePage property of the page frame to determine which pages are displayed.

THISFORM.pgfPeople.ActivePage = 1

See Also

Tasks

Change Pages When a User Chooses a Button Sample

Solution Samples

Reference

Visual FoxPro Foundation Classes A-Z

Other Resources

Controls Solution Samples