How to bring up a localized form when using application events

R

Robert Dufour

In my app I was using a sub main as the startup object and this code
Curlocale = My.Settings.UserUiLanguage

System.Threading.Thread.CurrentThread.CurrentUICulture = New
CultureInfo(Curlocale)

was OK to bring my next loaded form up in english or french depending on the
setting of the Curlocale (en or fr). But now I have to use frmMain as the
startup object because I need to use the application events. So I put the
same code in the applicationstart event. That no longer brings up my UI in
french when my curlocale is fr. It stays in the default english. How can I
get my frmMain to show up in french in this case?

Thanks for any help

Bob
 
R

Robert Dufour

Except that you can not use sub main in Vs2005 if you configure your
application to enable the application framework and you need to enable the
application framework if you are to use applicationevents.vb. Hence my
question, anyone know how to set startup form to use french from within
applicationstart event in applicationevents.vb
Regards
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