Rename Controls With Code

Top  Previous  Next

The Rename Controls With Code feature allows you to rename the related code (events and occurrences in the code) each time that you rename a control on a form, usercontrol, etc. which is not part of an array.

Code can be renamed automatically or you can be asked for confirmation. This is configured in the Options window, Controls tab.

Remarks:

  • This feature is not available in the VBA version of MZ-Tools.
  • The code outside the file where the control resides is not renamed. For example, if you reference a control Label1 in Form1 from module Module1, and you rename Label1, you need to rename manually occurrences in Module1. In general, it is better not to reference controls outside the file where they reside (encapsulation).

See Also:

Controls Customization