Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop Namespace