WindowsFormsApplicationBase.EnableVisualStyles 屬性

定義

判斷這個應用程式是否將 Windows XP 樣式用於視窗、控制項等。

protected:
 property bool EnableVisualStyles { bool get(); void set(bool value); };
protected bool EnableVisualStyles { get; set; }
member this.EnableVisualStyles : bool with get, set
Protected Property EnableVisualStyles As Boolean

屬性值

Boolean 值,指出這個應用程式是否將 XP Windows 樣式用於視窗、控制項等。

備註

方法 OnInitialize 會使用這個屬性來判斷是否要呼叫 EnableVisualStyles

適用於

另請參閱