Share via


WizardPage.CreateParams Property

Definition

Gets the required creation parameters when the wizard page is created.

protected:
 virtual property System::Windows::Forms::CreateParams ^ CreateParams { System::Windows::Forms::CreateParams ^ get(); };
protected override System.Windows.Forms.CreateParams CreateParams { get; }
member this.CreateParams : System.Windows.Forms.CreateParams
Protected Overrides ReadOnly Property CreateParams As CreateParams

Property Value

A CreateParams object that contains the required creation parameters when the wizard page is created.

Examples

The following example implements this property. The System.Windows.Forms.CreateParams.ExStyle property is a bitwise combination of extended window style values to apply to the page.

protected override CreateParams CreateParams {
    get {
        const int WS_EX_LAYOUTRTL = 0x400000;
        const int WS_EX_NOINHERITLAYOUT = 0x100000;

        CreateParams CP;
        CP = base.CreateParams;
        if (RightToLeftLayout) {
            CP.ExStyle = CP.ExStyle | 
                WS_EX_LAYOUTRTL | 
                WS_EX_NOINHERITLAYOUT;
        }
        return CP;
    }
}

Remarks

You should use the CreateParams property to encapsulate the information needed when you create the wizard page. You can use the CreateParams property to pass information about the initial state and appearance of a page. This property enables you to create a custom System.Windows.Forms.CreateParams object.

Applies to