Avoid changes of system date - error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ably+

    Avoid changes of system date - error

    Hi,

    I have use following code in order to avoid system changes by user:

    void OnTimeChanged(o bject sender, EventArgs e)
    {
    // Time has changed
    string message = MyMessages.GetS tring("TimeChng ");
    MessageBox.Show (message);
    this.Close();
    }

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

    It works, but in some casses for.e.g. when user make modem connection or
    disconnection Time has changed message has ocured???

    Do you know where probllem is?

    Is there some another possibility to avoid changes of system date?

    Thanks :)


Working...