Share via


IVstaHostItem.EnableVisualStyles Property

Gets or sets a value that specifies whether Windows Forms and other visual components can be used during code generation.

Namespace:  Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop
Assembly:  Microsoft.VisualStudio.Tools.Applications.ProgrammingModel (in Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.dll)

Syntax

'Declaration
Property EnableVisualStyles As Boolean
'Usage
Dim instance As IVstaHostItem 
Dim value As Boolean 

value = instance.EnableVisualStyles

instance.EnableVisualStyles = value
bool EnableVisualStyles { get; set; }
property bool EnableVisualStyles {
    bool get ();
    void set (bool value);
}
function get EnableVisualStyles () : boolean 
function set EnableVisualStyles (value : boolean)

Property Value

Type: System.Boolean
true if Windows Forms can be used; otherwise, false.

Remarks

The default value is true. If this property is set to true the user must add a reference to System.Windows.Forms.

.NET Framework Security

See Also

Reference

IVstaHostItem Interface

IVstaHostItem Members

Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop Namespace