System.Windows.Form equivalent of PeekMessage()
-
I'm implementing poor man's multithreading and need a way for a progress callback (delegate) to be able to pump the form's message queue so that it can check if the user has checked an "Abort" checkbox, thereby causing an ongoing computation to quit. In Win32, we used to pump the GUI's message queue using
PeekMessage()
. What's the appropriate analog in the WinForms world? Thanks, /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com -
I'm implementing poor man's multithreading and need a way for a progress callback (delegate) to be able to pump the form's message queue so that it can check if the user has checked an "Abort" checkbox, thereby causing an ongoing computation to quit. In Win32, we used to pump the GUI's message queue using
PeekMessage()
. What's the appropriate analog in the WinForms world? Thanks, /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)comHi Ravi the analog call of PeekMessage is BeginnInvoke.
-
Hi Ravi the analog call of PeekMessage is BeginnInvoke.