ManagementGroupBox.CreateParams Property

Definition

Gets the required creation parameters when the management group box 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 management group box is created.

Examples

The following example demonstrates the CreateParams property. This code example is part of a larger example provided for the ManagementGroupBox class.

// Create the customized CreateParams property.
protected override CreateParams CreateParams
{
    get
    {
        const int WS_EX_LAYOUTRTL = 0x400000;
        const int WS_EX_NOINHERITLAHYOUT = 0x100000;

        CreateParams CP;
        CP = base.CreateParams;
        CP.ExStyle = CP.ExStyle | WS_EX_LAYOUTRTL | WS_EX_NOINHERITLAHYOUT;
        return CP;
    }
}

Remarks

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

Applies to