开发者

is there any C# sample code for updating the time and date on Windows Mobile?

Is there any C# sampl开发者_运维问答e code for updating the time and date on Windows Mobile?


I don't have any exact sample, but you can do it by PInvoking SetSystemTime. The PInvoke page for SetSystemTime has some sample code which I'd thought would be very similar to the CF version and if there are any differences in doing PInvoke on Windows mobile you could probably find that out on this page: An Introduction to P/Invoke and Marshaling on the Microsoft .NET Compact Framework

Actually, might be easier than that even, I just found this page How to: Get or Set the System Time which seems to be CF specific...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜