Rename Related Source Code When Renaming a Control

Top  Previous  Next

 VB6 

The Rename Related Source Code When Renaming a Control 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.

This is configured in the Options window, Personal Options tab, Miscellanea section.

Remarks:

  • 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:

Miscellanea Options