Control Default Properties Options

Top  Previous  Next

 VS   VB6   VB5   VBA 

The Control Default Properties section of the Team Options tab allows you to customize the Apply Default Properties feature when applied to controls:

ControlDefaultProperties

You can:

  • To set whether to apply default properties when a new control is added to a form.
     
  • In Visual Studio, set if you want to apply a specific modifier (private, protected, etc.) to each new control that is added to a form. For example, by default VB.NET uses the Friend modifier, but you may want to use the Private modifier instead.
     
  • Define the default properties that you want to apply to each type of control.

To create a default property you use the following window:

ControlDefaultProperty

In this window you enter the following properties:

  • Assembly / Library: the assembly (Visual Studio) or library (VB) containing the control type.
     
  • Control Type: the control class.
     
  • Property Name: the property.
     
  • Property Value: the default value to be applied to the property.

Remarks:

  • For Visual Studio, this feature only works with Windows Forms controls. It doesn't work with WPF, Web, Silverlight or Smart Device controls.

See Also:

Apply Default Properties