473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to bring up a localized form when using application events

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
2 1437
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bogdan Zamfir | last post by:
Hi, I have big troubles with an Access2002 application I wrote it under Acc2002 Romanian, and try to run it on Acc2002 US version, and I have the following troubles For some forms, Load event...
0
by: jphelan | last post by:
I have a subform that works fine until you import it into a new database when it crashes if you try to open it in either disign or form view. The form, "Attendees_Subform" in my application was...
5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
4
by: A.M | last post by:
Hi, How can I bring up a WinForms application window among several other windows? I have tried Show() method, but it doesn't always work. Thanks, Alan
0
by: Henke | last post by:
Hi, I am using VS 2005 Beta, to build a localized web-application. I think it works very well to generate the strings in the resource editor, for the default language that is. To add a second...
4
by: Johnnie Miami | last post by:
I'm using VB.Net 2005 beta 2 and have my login form (login.vb) specified as the startup form. If the user is successful logging in, I call my main form (main.vb). This all works fine but the...
3
by: Mark Findlay | last post by:
When programming reads of the Windows Registry, do the registry keys and values need to be localized for international use? For example, do I need to convert the key name...
1
by: cold80 | last post by:
I'm trying to understand how VS 2005 and the .NET Framework 2.0 can be used for a localized application. I've read a lot of messages, posts and guides but I can find a straight answer. I would like...
3
by: O.B. | last post by:
I have a form that shows another child form using the Show() operation. Since the child is modaless, I would like the option that when I click anywhere on the parent form that the parent form...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.