In WPF, I can push a message loop using Dispatcher.PushFrame
.
What is the equivalent in WinForms? I'm familiar with DoEvents
but that must be called in a loop which can spin the CPU instead of the very efficient approach of just waiting for a message or for an event to signal to exit (like Dispatcher.PushFrame
has).