Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2006

Tip: Looking for answers? Try searching our database.

Problem localizing inherited form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Markus Hjärne - 26 Jan 2006 09:38 GMT
Hi,

I have a problem trying to localize an inherited form using VS2003. I have
inherited a form from a non-localized base form in a third-party assembly.
Since all controls in the base form is protected there's no problem changing
for example the Text property of inherited Label controls in the designer.
But when I make my inherited form localizable (by setting the Localizable
property of the inherited form to true), change the Language to Swedish,
change a label text to Swedish and then switch back to the Default language,
the label still has the Swedish text, not the inherited English text from
the base form.

Has anybody had the same experience and come up with a solution?

Thankful for any help on this.

/Markus Hjärne

PS
This was originally posted at microsoft.public.dotnet.internationalization,
but
there doesn't seem to be much activity in that group, so I repost it here.
"Jeffrey Tan[MSFT]" - 27 Jan 2006 05:56 GMT
Hi Markus,

Thanks for your post.

Yes, with a simple sample regarding your scenario, I can reproduce out this
problem. In Inherited Form, the new added control will work well. However,
if we change the localized inherited control property, although it will be
serialized to the localized culture resx file, it also overwrites the
default resx file property value. So when we switch back to default
language, the designer will still get the localized value.

I think this should be a VS.net designer serialization issue. I recommand
you submit a bug request to our product team at the link below:
http://lab.msdn.microsoft.com/ProductFeedback/

Then our product team will work with you on it. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Markus Hjärne - 08 Feb 2006 11:52 GMT
Thanks for taking your time. I have submitted a bug request as you
suggested.

/Markus

> Hi Markus,
>
[quoted text clipped - 19 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
Markus Hjärne - 08 Feb 2006 12:10 GMT
I've also found out that the bug is still present in VS2005, although
slightly changed. When I change to Swedish, change the label text and then
toggle Language to (Default) and then back to Swedish, the label text has
been reverted to the base label text.

/Markus

> Hi Markus,
>
[quoted text clipped - 19 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 09 Feb 2006 02:44 GMT
Hi Markus ,

I think it is better feedback this issue in your bug request. Then our
product team will work with you and see your concern. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Markus Hjärne - 10 Feb 2006 00:19 GMT
I did actually report the bug as it appeared in VS2005.

/Markus

> Hi Markus ,
>
[quoted text clipped - 6 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 10 Feb 2006 05:13 GMT
Yes, I see. Let's wait for the feedback of our product team on this issue.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jeffrey - 27 Jan 2006 21:23 GMT
This may sound basic, but did you rebuild the form?

> Hi,
>
[quoted text clipped - 18 lines]
> but
> there doesn't seem to be much activity in that group, so I repost it here.
Markus Hjärne - 08 Feb 2006 10:03 GMT
Hi Jeffrey,

what exactly do you mean by "rebuild the form"? Do you mean rebuild the
project the form is a part of? Yes, I've done that.

/Markus

> This may sound basic, but did you rebuild the form?
>
[quoted text clipped - 27 lines]
>> there doesn't seem to be much activity in that group, so I repost it
>> here.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.