|
but i want to change it on o/s level, not for the particular application or for the form...
thanks for u r reply.
hemanth
modified on Thursday, March 13, 2008 2:47 AM
|
|
|
|
|
U can change Runtime System Information by System Culture Informatin /Shell Command
using Shell32;
Shell objshell = new Shell();
objshell.ControlPanelItem("intl.cpl");
ANUBHAVA Dimri
anubhava.prodata@gmail.com
925168195
|
|
|
|
|
Thank u for ur information, but it will open the regional settings, my intention is to with out user interaction i have to change the input locale value.
hemanth
|
|
|
|
|
I Have a new style of Changing Regional Setting of System at Runtime
You Can Change Registry Value of System at Runtime
Just Like for Date
Change value of Date
My_Computer/HKEY_USERS/S-1-5-21-682003330-162531612-725345543-1003/Control Panal/Internation/
Set the value of sShortDate "dd/MM/yyyy"
Anubhava Dimri
anubhava.prodata@gmail.com
9250168195
|
|
|
|
|
I u not want to use this method .These two function are getting and Setting for System Information.
Public Const LOCALE_SSHORTDATE = &H1F
Public Declare Function GetSystemDefaultLCID Lib "kernel32" () As Long
Public Declare Function SetLocaleInfo Lib "kernel32" Alias "SetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String) As Boolean
Public Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String, ByVal cchData As Long) As Long
Anubhava Dimri
|
|
|
|
|
thank you very much....... Dimri.
hemanth
|
|
|
|
|
is there any way to convert the string to binary and subsequently to decimal.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Is Google[^] not working?
Cheers,
Vikram.
Zeppelin's law: In any Soapbox discussion involving Stan Shannon, the probability of the term "leftist" or "Marxist" appearing approaches 1 monotonically.
Harris' addendum: I think you meant "monotonously".
Martin's second addendum: Jeffersonian... I think that should at least get a mention.
|
|
|
|
|
i am asking this question because out of (02 , 1 , 1a) both are string type values , how should i ascertain programatically which is bigger(I mean , how to align them in ascending order)?
I thought , first i should convert the string to binary and subsequently to decimal.
Am I doing right ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
|
Today , i wrote the code , for sorting the datatable according to the decimal type column or string type column.All i have to do is to pass the datatable and the column number according to which one has to sort.
I want to improve the code.
Should i display it here ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
if you convert to a number, it will be a number, it won't be binary or decimal. Those are rendering details. int.TryParse turns a string to an int.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
can u suggest me a logic regarding the list 1 , 11 , 2 ,aa , 1a to align
in the ascending order ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Are these hex numbers ? I guess write a sort routine to turn them into numbers and sort from there.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Good Morning,
After searching for 3 seconds I gave up hope and started praying that someone else will be able to help me.
Can anyone tell me how to see if the IDE is open through code?
I want to skip some code if the program is running in Debug mode through the IDE, but run the code if the program runs on a customer workstation.
At the moment I'm using #Define, but this generally end up being forgotten when going into a Live environment.
Regards,
|
|
|
|
|
You can use #if DEBUG to check whether the program is running on debug mode. When you release the application in release mode, all the code written inside this will be skipped.
#if DEBUG
Console.WriteLine("running on debug");
#endif
|
|
|
|
|
I've found myself in a bind with the report viewer control...
Here is what I'm trying to build:
http://img135.imageshack.us/img135/2971/reporthelpzb2.gif[^]
Decode Key:
Blue = report
Red = horizontal table of objects
Yellow = values list in red object (of variable length, normally <=3 && >=1)
Here is how I setup my data business object classes as follows:
MainDataClass
|_TableObject
|_DateField
|_ValuesList
|_Value
|_UnitValue
I setup the data to point toward the TableObject and then bound the DataBoundObject to the MainDataClass.GetAllData() method.
My problem is I can't come up with a good solution to display the dynamic number values in the ValueList (horizontally preferred)
I was thinking I could use a matrix but doesn't that require two data grouops? Also a table only shows values vertically!
|
|
|
|
|
Hi
I don't know what happens but i just can't set a KeyPressEventHandler...
I tried every possible way but it just doesnt work, mouse\timer event work but just not any of the press key event work.
Could anyone help me?
My program is really simple, consist of a button that when you press it it plays a sound.
I want that when you press a key it plays the sound too.
So here is my code ( part of it)
I just put a messagebox on the even to test if it works but no...
<br />
public MainWindow() {<br />
InitializeComponent();<br />
this.KeyPress += new KeyPressEventHandler(MainWindow_KeyPress);<br />
}<br />
<br />
void MainWindow_KeyPress(object sender, KeyPressEventArgs e) {<br />
MessageBox.Show(" Event is working ");<br />
}<br />
<br />
private void button1_Click(object sender, EventArgs e) {<br />
WAVSounds ws = new WAVSounds();<br />
<br />
ws.Play("C:\\...\\Snare.wav", ws.SND_FILENAME | ws.SND_ASYNC);<br />
}<br />
I looked on alot of examples but i don't see anything that is missing.
Thanks alot.
|
|
|
|
|
Because you have controls on your form one of the controls will have the default focus, so the keypress event will go there (first of all). In order to handle the keypress, you need to set
this.KeyPreview = true;
|
|
|
|
|
omg i've been searching for hours! it was just one line that was missing!!!
Thanks
|
|
|
|
|
No problem. Glad to help.
|
|
|
|
|
Hello hello
I still have difficulties to understand the autocomplete feature of combobox and what they are used for
I've read and reread MSDN about that but I did'nt find the BASIC concept ?
Thanks a lot for who can tell me in a few words the basic purpose of those feattures
|
|
|
|
|
Essentially it provides a way to allow the end-user of the application a way to type less key strokes to pick a value for the combobox.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Thank you Scott
But I do not understand how !
I'm using a combobox with a DataTable datasource
I've already tryed to set the autocompleteMode to the different mode
But I don't realy see any different behaviour
But I'm not a combobox user specialist
|
|
|
|
|
Hi All,
I'm just testing some file recursion code at a good way into scanning all my hard drives for FileInfo[] I'm getting a DateTime exception of:
System.ArgumentOutOfRangeException was unhandled
Message="Not a valid Win32 FileTime.\r\nParameter name: fileTime"
Could this be a corrupt file issue?
At the moment I'm just grabbing a DateTime on each file should I really be passing it some CultureInfo in order to make sure that the DateTime format its using is of the host machines same cultire or should I implement some Culture.Invariant on it? Can C# even do that?
Thanks for any advice.
Regards,
Jammer
Going where everyone here has gone before!
|
|
|
|