PDA

View Full Version : قفل کردن تاریخ سیستم



Ner'zhul Arthas
یک شنبه 18 آذر 1386, 13:46 عصر
آیا راهی هست که تاریخ و ساعت کامپیوتر رو بشه قفل کرد تا کاربر نتونه اونو تغییر بده؟

ir_programmer
یک شنبه 18 آذر 1386, 14:09 عصر
این موضوع ارتباطی با این فروم نداره.

Ner'zhul Arthas
یک شنبه 18 آذر 1386, 14:27 عصر
به کجا ربط داره؟ من جواب رو به وی بی دات نت میخوام.

__siavash__
یک شنبه 18 آذر 1386, 14:51 عصر
یه جایی تو همین سایت برنامه نویس یکی گفت با این میشه اما تست نکردم شما میخوای یه تست بکن systemevents.timechanged

Ner'zhul Arthas
یک شنبه 18 آذر 1386, 15:11 عصر
این چطور باید ازش استفاده کرد؟


Public Shared Event TimeChanged(ByVal sender As Object, ByVal e As System.EventArgs)
Member of: Microsoft.Win32.SystemEvents
Summary:
Occurs when the user changes the time on the system clock.

Exceptions:
System.InvalidOperationException: System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications.
System.Runtime.InteropServices.ExternalException: The attempt to create a system events window thread did not succeed.