473,503 Members | 3,740 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application framework and localizing

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.CurrentUICul ture = 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.CurrentUICul ture = 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


Nov 15 '06 #1
1 894
Please disregard above, found it. problem was 18 inches from screen ;-)
Bob
"Robert Dufour" <bd*****@sgiims.comwrote in message
news:uo**************@TK2MSFTNGP03.phx.gbl...
>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.CurrentUICul ture = 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.CurrentUICul ture = 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


Nov 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
890
by: znappa | last post by:
Hi. Can anyone point to a good walkthrough on how to localize a console application (the MSDN Library has walkthtroughs for Windows app and Web App only, console app seems to be a bit different)....
9
647
by: Steve Buster | last post by:
All right, I have read every forum, newsgroup etc about this issue and no one seems to know how to fix it. I am getting a "Server Application Unavailable" exception running my .NET 1.1...
3
1646
by: Trapulo | last post by:
I've a datarepeater that loads custom external templates with loadtemplate and bind data to them. All ok. Now I need to localize some text labels, but I don't know how can I change this data. If I...
21
2143
by: Chris | last post by:
I'm trying to get an existing VS.NET project up on my Win2003 server and I get the following error (on the actual website page): "It is an error to use a section registered as...
24
1807
by: Nak | last post by:
Hi there, I have some inherited forms that I wish to make "localizable", unfortunately none of the items I wish to be "localizable" are actually being "localized". For example, I have a few of...
2
1536
by: amitmnagarwal | last post by:
I am using the following code to access the resourc file. Dim sAssembly As sAssembly = .GetExecutingAssembly() Dim rm As New ResourceManager("MultiLingual.Info", sAssembly) ''Case...
7
3134
by: Luc The Perverse | last post by:
Hello! I am looking for a good way to make an application multilingual. Danish/English for now (but I don't want to preclude more than two languages eventually) Every dialog will have an option...
0
1016
by: =?Utf-8?B?U3VzaGlTZWFu?= | last post by:
I have question about pages localizability. So for example I have 3 pages on my site ================== main.aspx users.aspx products.aspx ================== I want make Localizing for them....
0
831
by: cmdolcet69 | last post by:
I have an issue with localizing forms, I added a button to my form and then set my form to localizable property = true. changed my language from default to Spanish and saved. I built the...
0
7192
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,...
0
7315
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5559
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,...
0
4665
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...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
369
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...

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.