VB Migration Partner allows you to “massively” assign the design-time value of a given property to multiple controls, on a given form or all forms in the VB6 project. You can select the affected controls by their type or their name, in both cases using a regular expression. The pragma that does this magic is ChangeProperty, which takes the following four arguments: the property name, the new property value, a regex that identifies the control type (all controls if omitted), and a regex that identifies affected controls by their name (any name if omitted). Here are a few examples:
The name of controls that belong to a control array include the index between parenthesis:
You can also perform math operations on the current property value, by prefixing the newvalue argument with the +, -, *, /, \ symbols:
The second argument can be preceded by the “=” symbol, which allows you to set a negative value for a numeric property or to assign a string property that begins with a math symbol: