English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-03-26 18:21:14 · 2 answers · asked by jsplashindia 1 in Computers & Internet Programming & Design

2 answers

Application.DoEvents() processes all the events in the even loop of the program. So for example, the app may have got a redraw event, a timer event and some mouse movements, clicks, etc. If you are running a very tight loop (like calculating a few million digits of pi), then the app's UI will freeze up. One way to prevent that would be to occassionally call Application.DoEvents() inside your calculation loop, which would give the event handlers a chance to catch up on all the events that occurred while you were calcuating and process them. A better way would be to do your heavy calculations in a separate thread.

2007-03-26 18:32:56 · answer #1 · answered by Matt G 2 · 0 0

Tell .Net runtime to process HID events.

2007-03-27 01:34:35 · answer #2 · answered by Andy T 7 · 0 0

fedest.com, questions and answers