2
Answers

Timer_Tick() problem

mmplay

mmplay

20y
1.8k
1
Hi,there ****************************************************************** Thread doThread = new Thread(new ThreadStart(Do)); doThread.Start(); private Do() { System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer(); timer.Tick += new System.EventHandler(this.Timer_Tick); timer.Interval = 1000; timer.Enable = True; .......... .......... } private void Timer_Tick(object sender, System.EventArgs e) { .......... .......... } ****************************************************************** My problem is the Timer_Tick() begin running after Do() finish. How can I let Timer_Tick() begin at the same time as Do()? Thanks...
Answers (2)