This is a migrated thread and some comments may be shown as answers.

Localization Question on Winforms

2 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 15 Sep 2009, 03:47 PM
We are now in the process of localizing our windows forms application. Will we need to do anything special to support localization beside setting the form localization property to "true" and changing the language setting?

Also i have this snippet of code in the constructor of my form
Application.EnableVisualStyles()
        
        Select Case CultureInfo.CurrentCulture.Name
            Case "en-US"
                Thread.CurrentThread.CurrentUICulture = New CultureInfo("en-US")
            Case "zh-CN"
                Thread.CurrentThread.CurrentUICulture = New CultureInfo("zh-CHT")
        End Select

        InitializeComponent()

Because we just changed all of our text to Chinese and its showing up in the designer, but if we run it display back in english.

This way works fine using basic windows forms dot net controls, what's missing?

2 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 15 Sep 2009, 06:05 PM
Anyone monitoring this post?
0
Michael
Top achievements
Rank 1
answered on 15 Sep 2009, 07:47 PM
Developer error...i got it working!!!
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Share this question
or