GroupBox::FlatStyle Property

 

Gets or sets the flat style appearance of the group box control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property FlatStyle FlatStyle {
	FlatStyle get();
	void set(FlatStyle value);
}

Property Value

Type: System.Windows.Forms::FlatStyle

One of the FlatStyle values. The default value is Standard.

Exception Condition
InvalidEnumArgumentException

The value assigned is not one of the FlatStyle values.

A GroupBox with a FlatStyle value of System does not receive mouse events.

The following code example instantiates and creates a GroupBox and two RadioButton controls. The option buttons (also known as radio buttons) are added to the group box and the group box is added to the Form.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: