Control Name Assistant

Top  Previous  Next

The Control Name Assistant feature allows you to quickly change the Text and Name properties of the controls of a Windows form or usercontrol.

MZ-Tools offers the following ways to show the Control Name Assistant window:

  • The MZ-Tools | Control Name Assistant menu.
  • The Control Name Assistant button on the MZ-Tools toolbar.
  • The keyboard shortcut associated with the MZTools6_VSXXXX.ControlNameAssistant command.

The Control Name Assistant window is the following:

ControlNameAssistant

You can auto-generate the Name property from the Text property by checking the Generate the Name property while typing the Text property checkbox.

Remarks:

  • You can customize the prefixes used for control names in the Corporate Options window, Control Default Properties section, Name (prefix) property. You can also customize the prefix position (CancelButton vs ButtonCancel) in that section.
  • This feature does not rename instances of the Name property in the source code of the form or usercontrol, so it is recommended to use this assistant before adding code such as event handlers, etc.
  • Smart Device projects are not supported by this feature.

See Also:

Control Default Properties Options

Keyboard Shortcuts Options