System Date - Avoid changes

  • Thread starter Thread starter mp
  • Start date Start date
M

mp

Hi,

I would like to notice (catch message) when stsyem date is changed.

How we can do that?

Thanks
 
Hi,
I would like to notice (catch message) when stsyem date is changed.

How we can do that?

Thanks

Do You mean a change of time/date made by user?

Regards

Marcin
 
I would like to notice (catch message) when stsyem date is changed.

How we can do that?

Handle the TimeChanged event of the Microsoft.Win32.SystemEvents
class.



Mattias
 
How I can do that. Is there some example?

void OnTimeChanged(object sender, EventArgs e)
{
// ...
}

// Event hookup code, put in your constructor or some other place
where it makes sense
SystemEvents.TimeChanged += new EventHandler(OnTimeChanged);



Mattias
 
Back
Top