Problem with localized usercontrol

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
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

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

stoffi

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

.
 
D

Dmitriy Lapshin [C# / .NET MVP]

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

.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top