- SCOPE . ? .
timer.SynchronizingObject . 'this' Form1, , "Form1", . . .
, , - , Form1, , Windows. .
, , . , . . . . Visual Studio . . , . .
The important part here is that only a few lines of code are redirected to run on the Form1 stream. Not the entire event handler. Most of the event processing code runs in another thread. And this includes code, for example, to do something on the network or on disk.
It makes a DIFFERENCE.
BUT, all this applies only to applications with windows. For WPF, just use a dispatch timer. (This is why you cannot find Windows.Threading in WinForm, because you cannot use the dispatch timer in WinForm, but are available in WPF)
source
share