In a WinForms environment, I want to wait a specified amount of time before hiding a user control, but I don’t want to freeze the entire UI. I can’t kick off to another thread because I have to service the UI components on the thread they were created on. What is the cleanest way to do this?
Share
I would use a System.Windows.Forms.Timer. The
Tickevent will execute on the UI (message loop) thread.