Loading...
 
Multi-Language Add-In for Visual Studio

Multi-Language Add-In for Visual Studio


Strange use of MultiLang resources in InitializeComponent()

Germany

Occasionally, users have reported that strange code was generated in the function InitializeComponent(), using resource strings from MultiLang.resx, such as:

this.labelX9.BackgroundStyle.Class = global::YourProject.MultiLang._668;

Typically, this code would not compile.

For a long time, I was unable to reproduce this problem. Now, I think that I have understood the problem, and I have written a long article about it which you can access via the Articles menu, or here.

A contributory factor was an error in the version for Visual Studio 2010, in recognizing extended properties (such as Tooltip on Tooltip1). This error is fixed in version 4.72.0012, which should recognize these properties correctly.

Phil

I'd like to thank you personally for looking into this - solving the problem (trying to reproduce in the first place!) must have taken a lot of your time. But believe me, it saves us a hefty amount of work hours too! And takes away a major annoyance from those who did experience this weird VS behaviour.

So, thanks again!

Germany

Thanks,

Phil