Problem with localized usercontrol

  • Thread starter Thread starter stoffi
  • Start date Start date
S

stoffi

Hi
i must develop an multilanguage application (german,
italian). I have a localized winform with the description
in this 2 languages. Now i have a Usercontrol which is
localized too. If i would like drag this usercontrol from
the toolbox of the vs.net into my winform the vs.net give
me the following error:
An exception occurred while trying to create an instance
of PFUtilityLibrary.USCWeekDaysCheck. The exception
was "Could not find any resources appropriate for the
specified culture (or the neutral culture) in the given
assembly. Make sure "USCWeekDaysCheck.resources" was
correctly embedded or linked into
assembly "PFUtilityLibrary".
baseName: USCWeekDaysCheck locationInfo:
PFUtilityLibrary.USCWeekDaysCheck resource file name:
USCWeekDaysCheck.resources assembly: PFUtilityLibrary,
Version=1.0.1361.25253, Culture=neutral,
PublicKeyToken=null

I use the Framework 1.0, somebody have an idea what is
the problem?
thx
 
Hi,

My suggestion is that the Windows Forms designer first instantiates your
control with language-neutral locale you don't have resources for.
 
and solutions for this ??

if a change the localized of the usercontrol on true in
my winform the usercontrol it was deleted?
-----Original Message-----
Hi,

My suggestion is that the Windows Forms designer first instantiates your
control with language-neutral locale you don't have resources for.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Hi
i must develop an multilanguage application (german,
italian). I have a localized winform with the description
in this 2 languages. Now i have a Usercontrol which is
localized too. If i would like drag this usercontrol from
the toolbox of the vs.net into my winform the vs.net give
me the following error:
An exception occurred while trying to create an instance
of PFUtilityLibrary.USCWeekDaysCheck. The exception
was "Could not find any resources appropriate for the
specified culture (or the neutral culture) in the given
assembly. Make sure "USCWeekDaysCheck.resources" was
correctly embedded or linked into
assembly "PFUtilityLibrary".
baseName: USCWeekDaysCheck locationInfo:
PFUtilityLibrary.USCWeekDaysCheck resource file name:
USCWeekDaysCheck.resources assembly: PFUtilityLibrary,
Version=1.0.1361.25253, Culture=neutral,
PublicKeyToken=null

I use the Framework 1.0, somebody have an idea what is
the problem?
thx

.
 
The solution would probably be to open the usercontrol in the designer,
switch to the language-neutral locale and enter all locale-dependent
property values like label texts, sizes and so on.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

stoffi said:
and solutions for this ??

if a change the localized of the usercontrol on true in
my winform the usercontrol it was deleted?
-----Original Message-----
Hi,

My suggestion is that the Windows Forms designer first instantiates your
control with language-neutral locale you don't have resources for.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Hi
i must develop an multilanguage application (german,
italian). I have a localized winform with the description
in this 2 languages. Now i have a Usercontrol which is
localized too. If i would like drag this usercontrol from
the toolbox of the vs.net into my winform the vs.net give
me the following error:
An exception occurred while trying to create an instance
of PFUtilityLibrary.USCWeekDaysCheck. The exception
was "Could not find any resources appropriate for the
specified culture (or the neutral culture) in the given
assembly. Make sure "USCWeekDaysCheck.resources" was
correctly embedded or linked into
assembly "PFUtilityLibrary".
baseName: USCWeekDaysCheck locationInfo:
PFUtilityLibrary.USCWeekDaysCheck resource file name:
USCWeekDaysCheck.resources assembly: PFUtilityLibrary,
Version=1.0.1361.25253, Culture=neutral,
PublicKeyToken=null

I use the Framework 1.0, somebody have an idea what is
the problem?
thx

.
 
Back
Top