SystemEvents.TimeChanged fires twice
c#
Solution
This is MS bug which won't be fixed
http://connect.microsoft.com/VisualStudio/feedback/details/776003/systemevent-timechanged-is-fired-twice
Problem
I'm using the event SystemEvents.TimeChanged in my Windows Application and it fires twice. The code that I use: ``` using System; using Microsoft.Win32; namespace DateTimeTests { class Program { static void Main(string[] args) { SystemEvents.TimeChanged += new EventHandler(SystemEvents_TimeChanged); Console.WriteLine("Press any key to exit"); Console.ReadKey(); } static void SystemEvents_TimeChanged(object sender, EventArgs e) { Console.WriteLine("Time changed: {0}", DateTime.Now); } } } ``` I tried to change the time in Windows and the event occurs twice. Why?