Description

Localize a control, a form or a collection of controls.

Return Type

None  

Syntax

object.LocalizeControls UIObject, [Module], [Localizable]

The LocalizeControls Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McApplication.
UIObjectRequired. A Variant value.

A VB UserForm, UserControl, Controls collection or any other object with suitable properties.

ModuleOptional. A String value.

The module for which the translation should be done. This is used to resolve possible conflicts when a single english word has different translations for different contexts.

LocalizableOptional. A String value.

A list of properties to localize, defaults to “Caption,ToolTipText”.

Remarks

This method uses IDispatch calls to translate the properties listed in Localizable. Then, if UIObject is a collection, it does the same for each object in the collection.