Multi-Language Add-In for Visual Studio

Multi-Language Add-In for Visual Studio


Need RemoveHandler to avoid multiple calls to ml_UpdateControls

I think you need to add a "RemoveHandler" in each form's Dispose method or Closing event in order to properly disconnect the LanguageChanged event handler from the form.

Without this, an additional event handler gets registered each time the form is created (even if it was properly disposed), and this results in multiple calls to ml_UpdateControls.

example:

Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
RemoveHandler MlRuntime.MlRuntime.LanguageChanged, AddressOf ml_UpdateControls



Germany

You are right. I will add this as quickly as possible.

Phil


Germany

I have added this to version 4.55.0000 (for Visual Studio 2005/2008).

The Add-In adds a handler for the Disposed event rather than adding code to the Dispose method, because I didn't want to generate code in the partial class in the .designer.vb/cs file.

Phil