I want to change control Panel System Date using C#.net Code.
I have Code
private void setTime()
{
RegistryKey reg;
reg=Registry.Users.OpenSubKey("S-1-5-21-1757981266-861567501-682003330-500\\Control Panel\\International");
if(Convert.ToString(reg)==string.Empty)
{
MessageBox.Show("Blank");
}
else
{
reg.SetValue("sShortDate", "dd/MM/yyyy");
reg.SetValue("sLongDate", "dd/MM/yyyy");
}
}
But i dont know how to write registry value
Plz help me out
Change System DateFormat Runtime
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Suthish NairRank #92 · 22.8K reputationPosted Dec 12, 2010, 7:30 AM EST
refer how to edit registry..
http://www.c-sharpcorner.com/UploadFile/sushmita_kumari/RegistryKeys102082006061720AM/RegistryKeys1.aspx
http://www.c-sharpcorner.com/UploadFile/scottnewman/ReadingandWritingtotheRegistry12032005053638AM/ReadingandWritingtotheRegistry.aspx
Pravin GhadgeRank #1,340 · 1.3K reputationPosted Dec 12, 2010, 8:02 PM EST
Thank u Suthish