By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 950 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

Application framework and localizing

P: n/a
I want to be able to set my application's UI to appear in English or French.
To that end I have a language string value in the app.config file and the
following code.
Sub Main

Curlocale = My.Settings.UserUiLanguage

System.Threading.Thread.CurrentThread.CurrentUICul ture = New
CultureInfo(Curlocale)

Application.start(frmMain)

end sub

This works fine if I start my app with sub main as the startup object. But
if I put

Curlocale = My.Settings.UserUiLanguage

System.Threading.Thread.CurrentThread.CurrentUICul ture = New
CultureInfo(Curlocale)

in the applicatioon start event and use frmmain as the startup form using
the application framework, my first form - frmain - comes up showing the
default windows language UI (Englsih if OS is English, French If Os Is
french).

I would like to use the application framework but I need my first form to
show up in the language of the app.config file.

Can anyone tell me how I could achieve this?

Thanks for any help.

Bob


Nov 15 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Please disregard above, found it. problem was 18 inches from screen ;-)
Bob
"Robert Dufour" <bd*****@sgiims.comwrote in message
news:uo**************@TK2MSFTNGP03.phx.gbl...
>I want to be able to set my application's UI to appear in English or
French. To that end I have a language string value in the app.config file
and the following code.
Sub Main

Curlocale = My.Settings.UserUiLanguage

System.Threading.Thread.CurrentThread.CurrentUICul ture = New
CultureInfo(Curlocale)

Application.start(frmMain)

end sub

This works fine if I start my app with sub main as the startup object. But
if I put

Curlocale = My.Settings.UserUiLanguage

System.Threading.Thread.CurrentThread.CurrentUICul ture = New
CultureInfo(Curlocale)

in the applicatioon start event and use frmmain as the startup form using
the application framework, my first form - frmain - comes up showing the
default windows language UI (Englsih if OS is English, French If Os Is
french).

I would like to use the application framework but I need my first form to
show up in the language of the app.config file.

Can anyone tell me how I could achieve this?

Thanks for any help.

Bob


Nov 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.