Your scenario, as described, neatly fits BackgroundWorker
– why not just use that? Your requirements for a solution are way too generic, and rather unreasonable – I doubt there is any solution that would satisfy them all.
More Related Contents:
- How to remove all event handlers from an event
- Question about terminating a thread cleanly in .NET
- How do I update the GUI from another thread?
- Cross-thread operation not valid [duplicate]
- How do I call paint event?
- BackgroundWorker RunWorkerCompleted Event
- Multi-threaded splash screen in C#?
- How to invoke a UI method from another thread
- How do I execute code AFTER a form has loaded?
- Event handlers not thread safe? [duplicate]
- How is this possible: OnPaint processed while in WaitOne
- Show Loading animation during loading data in other thread
- C# Windows Forms Application – Updating GUI from another thread AND class?
- Parent Control Mouse Enter/Leave Events With Child Controls
- Order of events ‘Form.Load’, ‘Form.Shown’ and ‘Form.Activated’ in Windows Forms
- How to exit all running threads?
- Fire Form KeyPress event
- ‘using’ statement vs ‘try finally’
- Application.Exit
- How can I draw a rounded rectangle as the border for a rounded Form?
- STAThread and multithreading
- Change the borderColor of the TextBox
- Does the System.Windows.Forms.Timer run on a different thread than the UI?
- Populate TreeView with file system directory structure
- How to prevent flickering in ListView when updating a single ListViewItem’s text?
- How to append text to RichTextBox without scrolling and losing selection?
- .NET / Windows Forms: remember windows size and location
- ConcurrentDictionary Pitfall – Are delegates factories from GetOrAdd and AddOrUpdate synchronized?
- How can I detect when Windows 10 enters tablet mode in a Windows Forms application?
- RichTextBox Newline Conversion?