Click here to Skip to main content
15,911,646 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ctrl+Z character in C# Pin
Ravi Bhavnani2-Apr-10 10:07
professionalRavi Bhavnani2-Apr-10 10:07 
GeneralRe: Ctrl+Z character in C# Pin
The Man from U.N.C.L.E.2-Apr-10 10:47
The Man from U.N.C.L.E.2-Apr-10 10:47 
GeneralRe: Ctrl+Z character in C# Pin
Khaniya2-Apr-10 18:33
professionalKhaniya2-Apr-10 18:33 
GeneralRe: Ctrl+Z character in C# Pin
Rajesh Anuhya2-Apr-10 22:23
professionalRajesh Anuhya2-Apr-10 22:23 
AnswerRe: Ctrl+Z character in C# Pin
Richard MacCutchan2-Apr-10 23:26
mveRichard MacCutchan2-Apr-10 23:26 
QuestionSetting the region of a computer from a C# program... Pin
glauben2-Apr-10 8:37
glauben2-Apr-10 8:37 
AnswerRe: Setting the region of a computer from a C# program... Pin
Ravi Bhavnani2-Apr-10 9:14
professionalRavi Bhavnani2-Apr-10 9:14 
GeneralRe: Setting the region of a computer from a C# program... Pin
glauben2-Apr-10 11:12
glauben2-Apr-10 11:12 
Hey Ravi,

Thanks for the information. It steered me into the "right" direction for my purpose. I'm writing a unit test and by doing:
regionInfo = new RegionInfo("US");
CultureInfo cultureInfo = new CultureInfo(0x0409);
Thread.CurrentThread.CurrentCulture = cultureInfo;

Assert.AreEqual(regionInfo.TwoLetterISORegionName, regional.GetLocaleCode(), "Locale code is: " + regional.GetLocaleCode());

NOTE: regional.GetLocaleCode() is a call to get the system region settings

I was able to have my Regional settings set to something other than "US" and the tests ran as though the system was set to the "US" regardless.

In curiosity, do you know of a way to commit those settings to the system? Or would that be more of a registry manipulation exercise? Or "C", none of the above. Smile | :)

Thanks again.
AnswerRe: Setting the region of a computer from a C# program... Pin
PIEBALDconsult2-Apr-10 10:11
mvePIEBALDconsult2-Apr-10 10:11 
GeneralRe: Setting the region of a computer from a C# program... Pin
glauben2-Apr-10 10:19
glauben2-Apr-10 10:19 
GeneralRe: Setting the region of a computer from a C# program... Pin
PIEBALDconsult2-Apr-10 10:47
mvePIEBALDconsult2-Apr-10 10:47 
GeneralRe: Setting the region of a computer from a C# program... Pin
Mycroft Holmes2-Apr-10 22:36
professionalMycroft Holmes2-Apr-10 22:36 
GeneralRe: Setting the region of a computer from a C# program... Pin
glauben4-Apr-10 15:12
glauben4-Apr-10 15:12 
GeneralRe: Setting the region of a computer from a C# program... Pin
Mycroft Holmes4-Apr-10 15:34
professionalMycroft Holmes4-Apr-10 15:34 
QuestionDS virtual capture device Pin
kennyhibs2-Apr-10 8:34
kennyhibs2-Apr-10 8:34 
AnswerRe: DS virtual capture device Pin
Migounette3-Apr-10 10:40
Migounette3-Apr-10 10:40 
QuestionListView control in Csharp smart device [modified] Pin
Tunisien862-Apr-10 4:59
Tunisien862-Apr-10 4:59 
AnswerRe: ListView control in Csharp smart device Pin
Luc Pattyn2-Apr-10 5:09
sitebuilderLuc Pattyn2-Apr-10 5:09 
GeneralRe: ListView control in Csharp smart device Pin
Tunisien862-Apr-10 5:29
Tunisien862-Apr-10 5:29 
AnswerRe: ListView control in Csharp smart device Pin
Ravi Bhavnani2-Apr-10 7:01
professionalRavi Bhavnani2-Apr-10 7:01 
GeneralRe: ListView control in Csharp smart device Pin
Tunisien862-Apr-10 9:12
Tunisien862-Apr-10 9:12 
GeneralRe: ListView control in Csharp smart device Pin
Ravi Bhavnani2-Apr-10 9:16
professionalRavi Bhavnani2-Apr-10 9:16 
GeneralRe: ListView control in Csharp smart device Pin
Tunisien862-Apr-10 9:21
Tunisien862-Apr-10 9:21 
AnswerRe: ListView control in Csharp smart device Pin
Ravi Bhavnani2-Apr-10 9:25
professionalRavi Bhavnani2-Apr-10 9:25 
GeneralRe: ListView control in Csharp smart device Pin
Tunisien862-Apr-10 9:49
Tunisien862-Apr-10 9:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.