static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); DigitalWatch watch = new DigitalWatch(); }
public Form1() { InitializeComponent(); dwatch = new DigitalWatch(); Thread timerthread = new Thread(new ThreadStart(watch)); timerthread.Start(); }