473,938 Members | 20,418 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Use rUiLanguage

System.Threadin g.Thread.Curren tThread.Current UICulture = New
CultureInfo(Cur locale)

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 applicationstar t 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 1469
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.Use rUiLanguage

System.Threadi ng.Thread.Curre ntThread.Curren tUICulture = New
CultureInfo(Cu rlocale)

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 applicationstar t 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 applicationeven ts.vb. Hence my
question, anyone know how to set startup form to use french from within
applicationstar t event in applicationeven ts.vb
Regards
Bob
"tomb" <to**@technetce nter.comwrote in message
news:us******** **********@bign ews5.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.Use rUiLanguage

System.Thread ing.Thread.Curr entThread.Curre ntUICulture = New
CultureInfo(C urlocale)

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 applicationstar t 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
1586
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 is not executed, and when the form is opened (it is, but without triggering any LOAD event) I try to click on any button, It gets a message like "Access cannot communicate with ActiveX server, bla, bla..."
0
1881
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 pattern after the same form used in the MS template, "Event Management.mdb" application that is downloaded from the MS Template Gallery on their website. I narrowed down the problem to the Control Source in the, "Attendees_Subform using the...
5
73242
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
2635
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
953
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 language I copy the generated resx-file, and rename it to WebForm1.aspx.sv-se.resx to hold my swedish text. Here is the problem: When a new control is to be added to the form I only get a new row in my resx-file for the default language, when I...
4
7859
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 problem is that the login form stays open. I put a me.close (in the login form) after opening the main form but that seems to close everything and the main form is not displayed. I thought I could call a Sub Main() that calls the login form, closes...
3
2373
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 L"\\Software\\Microsoft\\Windows" into Japanese, Korean, etc., for use in those markets? Thanks experts!
1
2002
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 to write a DLL library, but I think it'll contain also some forms. I'd like to add a global resx file for all the error messages and a resource file for each form. This can be done very easily with VS2005. Then I can add a resource file for each...
3
3714
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 comes in front of the child. I added a callback in the parent form to call BringToFront() when I selected anywhere in the parent form, but it didn't work. Is there an option that I can specify in the child form to allow for this behavior?
0
10134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11524
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11289
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9857
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8218
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7384
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6295
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3501
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.