Forum: Multi-Language Add-In for Visual Studio

Runtime Language Switching for Inherited Forms

It appears that inherited forms (i.e. forms that use visual inheritance) do not appear in the list of components in the Runtime Language Switching dialog. Therefore, there is no way to automatically generate an ml_UpdateControls() routine for any child forms, and hence, you can't dynamically update the controls at runtime without reloading the form.

What would need to be done in the base form:

Protected Sub ml_UpdateControls()
'load text for controls on base form

And on the child form:

Protected Overrides Sub ml_UpdateControls()
MyBase.ml_UpdateControls()
'load text for controls on this form

Germany

Hi,

I just did a quick test using Visual Studio 2008 and the latest version of the Add-In (currently 4.54.0011) and both the inherited form and the base form were shown in the Runtime Language Switching dialog.

Which version of the Add-In are you using, and which version of Visual Studio?

Phil

Yes, I may have spoken too soon, because I did get it to work correctly on an existing application.

But I still can't get it to work correctly on the test application (see attached). I'm using Visual Studio 2003 with version 4.00.0054. Is that the latest VS 2003-compatible version?

Also, I now see that in child forms you are updating all of the controls (including those inherited from the base form). So my request for Protected and overriding calls is unnecessary.

Thanks




Germany

4.00.0054 is the most recent version for VS 2003, but I am currently merging a lot of changes from the version for VS 2005 back into the version for VS 2003. This should be completed in a few days. I will then test it with inherited forms and take a look at your test application.

Phil