EDN Admin
Well-known member
Hello everyone,
Im recently writing an app that is localizable and have several lauguage resources built within VS 2010 SP1. But now I came into a problem -- it seems that VS has modified one of the Designer.vb unregularly.
The problem reveals like this. Whenever I want to change the main forms Language from Default into fr-CA (for eg, and with Localizable true), and after I save or run the project, then VS shows me with dozens of a same errors: Resources_fr_CA
is not a member of myApp. The amount the this error I guess is depend on the number of controls on the form, but Im not quite certain about that.
Then I looked into the Designer file and found strange lines that were suddenly added by VS, they are somelike this two, not all these but commonly:
<pre class="prettyprint lang-vb Me.Tooltip.SetToolTip(Me.Label1, Global.vdir.Resources_fr_CA.Button5)
Me.Button1.ImageKey = Global.vdir.Resources_fr_CA.Button5[/code]
As seen above, none of the controls are relative in fact, and actually say I had never set Tooltip for neither Label1 or Button5. It is abvious that these dozens of lines were added all by VS itself.
The problem used to happened several times and it was passive before cos I can remove the lines one by one, using a text editor from outside. But now it is total nightmare, because, now whenever I set Language into French, the same problem MUST happen as
saving the project. I can not debug or develop it with local language again, that is not any more a joke is it?
So Im badly wonder now if theres a basic way to solve the problem, and of course how to avoid from happening again. May anyone tells me what to do with it? Thanks.
Sincerely.
<br/>
View the full article
Im recently writing an app that is localizable and have several lauguage resources built within VS 2010 SP1. But now I came into a problem -- it seems that VS has modified one of the Designer.vb unregularly.
The problem reveals like this. Whenever I want to change the main forms Language from Default into fr-CA (for eg, and with Localizable true), and after I save or run the project, then VS shows me with dozens of a same errors: Resources_fr_CA
is not a member of myApp. The amount the this error I guess is depend on the number of controls on the form, but Im not quite certain about that.
Then I looked into the Designer file and found strange lines that were suddenly added by VS, they are somelike this two, not all these but commonly:
<pre class="prettyprint lang-vb Me.Tooltip.SetToolTip(Me.Label1, Global.vdir.Resources_fr_CA.Button5)
Me.Button1.ImageKey = Global.vdir.Resources_fr_CA.Button5[/code]
As seen above, none of the controls are relative in fact, and actually say I had never set Tooltip for neither Label1 or Button5. It is abvious that these dozens of lines were added all by VS itself.
The problem used to happened several times and it was passive before cos I can remove the lines one by one, using a text editor from outside. But now it is total nightmare, because, now whenever I set Language into French, the same problem MUST happen as
saving the project. I can not debug or develop it with local language again, that is not any more a joke is it?
So Im badly wonder now if theres a basic way to solve the problem, and of course how to avoid from happening again. May anyone tells me what to do with it? Thanks.
Sincerely.
<br/>
View the full article