Apply Control Default Properties

Top  Previous  Next

The Apply Control Default Properties feature allows you to apply customized default properties to each control of a Windows form or usercontrol, either automatically when the control is dropped, or later. Some properties you may want to apply defaults to are the Name property (to use your own prefixes), the Text property (to use empty values), the LabelEdit or View properties of ListViews, and so on. You can also apply a predefined modifier (private, protected, etc.) to each control.

The default properties are specified in the Corporate Options window, Control Default Properties section.

MZ-Tools offers the following ways to apply default properties to a control:

  • The MZ-Tools | Apply Default Properties menu.
  • The Apply Default Properties button on the MZ-Tools toolbar.
  • The Apply Default Properties context menu of selected controls on a form.
  • The keyboard shortcut associated with the MZTools6_VSXXXX.ApplyDefaultProperties command.
  • Automatically when you add a control to a form (you may be asked for confirmation).

Remarks:

  • Neither Smart Device controls nor Web controls are supported by this feature. This is a limitation of Visual Studio.

See Also:

Control Default Properties Options