Application framework and localizing

R

Robert Dufour

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.CurrentUICulture = 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.CurrentUICulture = 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
 

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