473,795 Members | 3,006 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing Globalization CultureInfo


Hello everybody;

Somebody has a simple example of like applying to the change of
Globalization to an application MDI with children windows already
opened?

HEY!!: That "located" properties of my controls automatically change
when changing the current culture.

Thanks

Alvaro

PD: I'm using C# language.
Nov 17 '05 #1
2 9754
> Somebody has a simple example of like applying to the change of
Globalization to an application MDI with children windows already
opened?
I'm not sure but you could try this:

Thread.CurrentT hread.CurrentCu lture = new CultureInfo("en-us");
Thread.CurrentT hread.CurrentUI Culture = new CultureInfo("en-us");
HEY!!: That "located" properties of my controls automatically change
when changing the current culture.

Again not sure, but I think controls don't have a culture property. The
culture is set at thread level.

The "Location" property says where a control is positioned in the screen.

Greetings,
Wessel
Nov 17 '05 #2
> Somebody has a simple example of like applying to the change of
Globalization to an application MDI with children windows already
opened?
I'm not sure but you could try this:

Thread.CurrentT hread.CurrentCu lture = new CultureInfo("en-us");
Thread.CurrentT hread.CurrentUI Culture = new CultureInfo("en-us");
HEY!!: That "located" properties of my controls automatically change
when changing the current culture.

Again not sure, but I think controls don't have a culture property. The
culture is set at thread level.

The "Location" property says where a control is positioned in the screen.

Greetings,
Wessel
Nov 17 '05 #3

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

Similar topics

1
357
by: Gani Pola | last post by:
Can someone please tell me how I can change the date format (e.g dd/mm/yyyy, mm/dd/yyyy) in a configuration file? In my windows app, I can retrieve the windows setting but not my ASP.NET application. TIA GP
0
349
by: FM | last post by:
Hi, I use the following code to set the current culture. If Not IsNothing(Session("language")) Then System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo(Session("language").ToString) End If
4
1452
by: Boonaap | last post by:
Hi, I have this asp.net application in which the user can choose between three possible languages. NL - FR - EN How can I set the System.Globalization.CultureInfo to three different values, just by clicking a button? in a pageLoad i have something like this: switch(vLang){
5
6929
by: Jason L James | last post by:
Hi have two subroutines that change the currentCulture property of my application. I can call either: System.Threading.Thread.CurrentThread.CurrentCulture = New CultureInfo("en-GB") or:
2
3142
by: jason | last post by:
DOTNET 2.0 VS 2005. My client is saying August 13,2006.. julian date should equal 225. Here's what I'm doing: <%@ Import Namespace="system.globalization" %> <script language="VB" runat="server">
2
5120
by: Terry Olsen | last post by:
I'm a bit confused on how to make my app work in all cultures, particularly with parsing the date out of a string. I read dates from different web sites. The formats I've run into include 'yyyy.mm.dd', 'dd/mm/yyyy', 'yyyy-mm-dd', 'dd-mmm-yyyy'. I'm using the following code to parse the date, which has worked for a lot of Regions but not all, such as Germany. Dim CI As System.Globalization.CultureInfo CI =...
5
1831
by: Basildk | last post by:
Hi. I have a strange problem. We have an asp.net application running on several server with different setups. On 2 of our servers we experience that the globalization settings are misbehaving. We have boiled the problem down to this: (exemplified by a very simple page)
1
1563
by: ready2explod | last post by:
Hi Friends, I am new to .NET and need your help to sort out one issue. I want to change the language of my program using following code: System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US"); System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
0
1357
by: Hvid Hat | last post by:
Hi The following code will give me the month names in the given culture: CultureInfo cultureInfo = new CultureInfo(CultureInfo.CurrentCulture.Name); string months = cultureInfo.DateTimeFormat.MonthNames; Now I'm wondering if I can also get the translation of the words day, month and year in different languages from the globalization class? Is there a property/method for those words? E.g. cultureInfo.DateTimeFormat.Month would
0
10448
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
10167
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
9046
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
7544
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
6784
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
5440
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...
0
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2922
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.