Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cross-thread operation not valid: Control 'topology' accessed from a thread other than the thread it was created on...
- private SynchronizationContext context;
- MyForm()
- {
- InitializeComponents();
- context = SynchronizationContext.Current;
- }
- ///// somewhere in another thread
- context.Post(myCallbackInUIThread, null) // you can use Send for synchronous call
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement