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

How to bring up a localized form when using application events

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

System.Threading.Thread.CurrentThread.CurrentUICul ture = 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
Nov 13 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I use a Main sub and I have no problem using the Application events.

T

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

System.Threading.Thread.CurrentThread.CurrentUICu lture = 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

Nov 14 '06 #2

P: n/a
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
"tomb" <to**@technetcenter.comwrote in message
news:us******************@bignews5.bellsouth.net.. .
>I use a Main sub and I have no problem using the Application events.

T

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

System.Threading.Thread.CurrentThread.CurrentUIC ulture = 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

Nov 14 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.