473,652 Members | 3,173 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.Use rUiLanguage

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

Application.sta rt(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.Use rUiLanguage

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

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 905
Please disregard above, found it. problem was 18 inches from screen ;-)
Bob
"Robert Dufour" <bd*****@sgiims .comwrote in message
news:uo******** ******@TK2MSFTN GP03.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.Use rUiLanguage

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

Application.sta rt(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.Use rUiLanguage

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

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
894
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). Thanks.
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 application. I use W2K SP4 and have applied the hot Fix KB824146 and KB824105, both IE fixes. I don't have VS installed because this is a Quality Environment. I do have .NET SDK and .NET 1.1 Runtime installed. I can't change my APSNET user to run as...
3
1653
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 call from template a function in page's codebehind, I have an error. How can I do? I wouldn't like create a lot of template, localized in asp code, and load manually the right one.. thanks
21
2162
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 allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS." I've been told by the previous developer that the website needs to be set as a "application". I...
24
1820
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 properties which set the text of some labels on the form which are inherited from the base form, these text values aren't "localized" Has anyone any ideas where I'm going wrong? Nick.
2
1545
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 sensitive Response.Write(rm.GetString("Test"))
7
3151
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 for changing language (except simple dialog boxes) Here is what I am envisioning - I want to make sure I am on the right track: There is a global language object which handles giving out strings, has functions for setting/retrieving the...
0
1025
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. For this I add App_LocalResources folder and put there 3 files for default language- main.aspx.resx, users.aspx.resx,
0
847
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 project and tested it on a windows XP spanish OS. the button text still said "button1"
0
8367
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
8703
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8467
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
7302
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
6160
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
4145
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
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.