473,394 Members | 1,766 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,394 software developers and data experts.

Start a process with a different CultureInfo than the OS

How can I start a new process with a different CultureInfo?

I have tried already to set the CultureInfo of the thread starting the
new process before creating the Process object, but it doesn't help.
Jun 26 '06 #1
4 6205
Dirk,

Normally that should be enough,

Threading.Thread.CurrentThread.CurrentCulture = New
Globalization.CultureInfo("en-US")

Threading.Thread.CurrentThread.CurrentUICulture = New
Globalization.CultureInfo("en-US")
I hope this helps,

Cor

"Dirk Behnke" <di*********@gmx.net> schreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
How can I start a new process with a different CultureInfo?

I have tried already to set the CultureInfo of the thread starting the new
process before creating the Process object, but it doesn't help.

Jun 26 '06 #2
Cor Ligthert [MVP] wrote:
Dirk,

Normally that should be enough,

Threading.Thread.CurrentThread.CurrentCulture = New
Globalization.CultureInfo("en-US")

Threading.Thread.CurrentThread.CurrentUICulture = New
Globalization.CultureInfo("en-US")
I hope this helps,

Cor

"Dirk Behnke" <di*********@gmx.net> schreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
How can I start a new process with a different CultureInfo?

I have tried already to set the CultureInfo of the thread starting the new
process before creating the Process object, but it doesn't help.


Hi:

I think Dirk wants to know how to set the "CultureInfo" outside the
running process.

That means do not change the application code and just changes the
process CultureInfo from a luncher application.

It is similar the Microsoft AppLocale Utility.

I also want to know to do so.

--
Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk
jacky@compose_DOT_com_DOT_hk
Jun 27 '06 #3
Cor,
thanks for the info.
But as Jacky wrote it is not exactly what I mean

I want to start with my .Net application another process and
this process should start with a certain CultureInfo
e.g.

' remember old and set new CultureInfo
Dim CurrentCulture As System.Globalization.CultureInfo =
_System.Globalization.CultureInfo.CurrentCulture
System.Threading.Thread.CurrentThread.CurrentCultu re = New
_System.Globalization.CultureInfo("en-US")
Dim prcNew As New Diagnostics.Process
prcNew.StartInfo.UseShellExecute = False
'omitted: set environment variables
prcNew.StartInfo.Arguments = sArgs
prcNew.StartInfo.FileName = sProcessFileName
prcNew.Start()

regards
Dirk
Cor Ligthert [MVP] wrote:
Dirk,

Normally that should be enough,

Threading.Thread.CurrentThread.CurrentCulture = New
Globalization.CultureInfo("en-US")

Threading.Thread.CurrentThread.CurrentUICulture = New
Globalization.CultureInfo("en-US")
I hope this helps,

Cor

"Dirk Behnke" <di*********@gmx.net> schreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
How can I start a new process with a different CultureInfo?

I have tried already to set the CultureInfo of the thread starting
the new process before creating the Process object, but it doesn't help.


Hi:

I think Dirk wants to know how to set the "CultureInfo" outside the
running process.

That means do not change the application code and just changes the
process CultureInfo from a luncher application.

It is similar the Microsoft AppLocale Utility.

I also want to know to do so.

Jun 27 '06 #4
Dirk,

I would not know how to do that.

Maybe you even want to give this information to a wordprocessor, which uses
not even Net, so it does not use the globalization in the Net framework.

Cor

"Dirk Behnke" <di*********@gmx.net> schreef in bericht
news:%2****************@TK2MSFTNGP03.phx.gbl...
Cor,
thanks for the info.
But as Jacky wrote it is not exactly what I mean

I want to start with my .Net application another process and
this process should start with a certain CultureInfo
e.g.

' remember old and set new CultureInfo
Dim CurrentCulture As System.Globalization.CultureInfo =
_System.Globalization.CultureInfo.CurrentCulture
System.Threading.Thread.CurrentThread.CurrentCultu re = New
_System.Globalization.CultureInfo("en-US")
Dim prcNew As New Diagnostics.Process
prcNew.StartInfo.UseShellExecute = False
'omitted: set environment variables
prcNew.StartInfo.Arguments = sArgs
prcNew.StartInfo.FileName = sProcessFileName
prcNew.Start()

regards
Dirk
Cor Ligthert [MVP] wrote:
Dirk,

Normally that should be enough,

Threading.Thread.CurrentThread.CurrentCulture = New
Globalization.CultureInfo("en-US")

Threading.Thread.CurrentThread.CurrentUICulture = New
Globalization.CultureInfo("en-US")
I hope this helps,

Cor

"Dirk Behnke" <di*********@gmx.net> schreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
How can I start a new process with a different CultureInfo?

I have tried already to set the CultureInfo of the thread starting the
new process before creating the Process object, but it doesn't help.

Hi:

I think Dirk wants to know how to set the "CultureInfo" outside the
running process.

That means do not change the application code and just changes the
process CultureInfo from a luncher application.

It is similar the Microsoft AppLocale Utility.

I also want to know to do so.

Jun 27 '06 #5

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

Similar topics

2
by: eikel | last post by:
Hi I am a newbie c# programmer, I would like to know how to make a function that switches between languages in windows XP/2000. The languages can be set manually in the language bar. Thanks for...
1
by: Neo | last post by:
The short date format of my computer is dd/mm/yyyy and I get the same short date format when running other program. But the asp.net web page showed the short date format is m/d/y. Why...
0
by: Kirk | last post by:
The following C# web service works fine until you uncomment the lines setting UserName and Password. Then, Process.Start throws an Access is Denied Exception. This is with .NET 2.0, of course...
3
by: Joshua Stewart | last post by:
Hi, I am trying to characterise a problem I am seeing on our C#/C++ xml driven application. We have recently added some basic Spanish language support to our application, but it seems that there...
2
by: Kevin Blount | last post by:
I'm trying to create a multi-lingual ASP.NET (C#) page where text, etc comes from a database, so that I don't have to maintain 6 copies of the page. This is mostly working just fine, but I have a...
21
by: Darin | last post by:
I have an applicatoin that works 100% perfect when running on a machine setup for English (United States), but when I change it to Spanish (Mexico), the dates start giving me fits. THe reason is...
13
by: chuckie_9497 | last post by:
hello all you gurus. I am struggling with releasing com objects. I have isolated the problem to the code below. Objects are released and the process ends until I use "int k = sheet.Count;" Then...
0
by: =?Utf-8?B?UmFmYWVsIEFtb3JpbQ==?= | last post by:
Hello Guys, I have an application that is installed on three different data centers across the world (exactly the same environment and installed files for each one). I got some errors from...
0
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 =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.