WindowsFormsApplicationBase.EnableVisualStyles 属性      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定此应用程序是否将 Windows XP 样式用于窗口、控件等。
protected:
 property bool EnableVisualStyles { bool get(); void set(bool value); };protected bool EnableVisualStyles { get; set; }member this.EnableVisualStyles : bool with get, setProtected Property EnableVisualStyles As Boolean属性值
Boolean 值,指示此应用程序是否将 XP Windows 样式用于窗口、控件等。
注解
方法 OnInitialize 使用此属性确定是否调用 EnableVisualStyles。