-
February 27th, 2014, 10:32 PM
#1
Change Windows Regional Date Format
I has the following code :
Microsoft.Win32.Registry.SetValue("HKEY_CURRENT_USER\Control Panel\International", "sShortDate", "dd/MM/yyyy")
When I click the control panel regional date properties, the date format was changed. But the desktop date at the bottom right was not changed. How can I make it change as well?
-
February 28th, 2014, 12:53 AM
#2
Re: Change Windows Regional Date Format
Registry gets read ONCE when you log in or boot. It tells you to re-start most of the time, if you have credentials
-
March 8th, 2014, 02:22 AM
#3
Re: Change Windows Regional Date Format
It is not usually a good idea to do these sort of changes in the registry, there are many possible issues that might arise from it; but, sometimes there is a need.
You have to remember, as David rightly pointed out, the Registry gets loaded by Windows once, any changes to that might not get loaded immediately. A System change such as what you have, will only take effect after a reboot of the PC.
You might be able to send a broadcast message, to inform Windows that a registry value has changed. Have you heared of the following APIs :
BroadcastSystemMessage
PostMessage
SendMessage
You could use any of those, as long as you send the WM_SETINGCHANGE constant.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|