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 樣式來管理windows、控制項等。

備註

OnInitialize 方法利用此特性來判斷是否要呼叫 EnableVisualStyles

適用於

另請參閱