I'm using C # to develop good morning PC software and using this method, The middle loop is done to delay
System.Threading.Thread.Sleep (x);
But this makes my software freeze. How this method works, freezes my entire code to my application
Private Zero Button 18_Click_3 (Object Sender, EventArgs E) {for (int i = 0; i Other Options
- Start the timer with the interval you need (x). And it should be fine.
- Use the background work thread, because the sleeping in the background worker will not affect your main GUI.
No comments:
Post a Comment