如何使用代码更新/更改控制面板中区域和语言选项中的系统日期时间格式? [英] How to update/change system date time format in regional and language options in control panel using code ?

查看:97
本文介绍了如何使用代码更新/更改控制面板中区域和语言选项中的系统日期时间格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找.net(c#)中的代码,该代码可帮助我在Windows XP的控制面板当前区域的区域选项中更改系统日期时间.

I am looking for code in .net (c#) which helps me to change system datetime in regional options of control panel currenlty for windows XP

推荐答案

为什么?您所要做的就是惹恼用户.

据我所知,如果有任何应用程序因区域设置而改变,它将完全弄乱我所有其他应用程序-我以以前使用过的格式输入日期,突然,它不再起作用了!当我弄清楚发生了什么事时,我会要求我退钱,再也不会使用您的产品了.

您想做什么,以为您需要这个?
Why? All you will do is annoy the heck out of the user.

If any application changed by regional settings, it would completely mess up all my other applications, as far as I could see - I enter dates in the format they had all used before, and suddenly, it doesn''t work any more! When I worked out what had happened, I would be demanding my money back, and never use your products again.

What are you trying to do, that you think you need this?


转到此链接:)
http://pinvoke.net/default.aspx/kernel32/SetLocalTime.html [ ^ ]

http://stackoverflow.com/questions/6040636/how-to-update-change-change-system-date-time-format-in-regional-and-language-options-in [ http://stackoverflow.com/questions/6040636/how-to-update-change-change-system-date-time-format-in-regional-and-language-options-in [
go this link :)
http://pinvoke.net/default.aspx/kernel32/SetLocalTime.html[^]

http://stackoverflow.com/questions/6040636/how-to-update-change-system-date-time-format-in-regional-and-language-options-in[^]
http://stackoverflow.com/questions/6040636/how-to-update-change-system-date-time-format-in-regional-and-language-options-in[^]


这篇关于如何使用代码更新/更改控制面板中区域和语言选项中的系统日期时间格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆