I’m struggling to get access to the ui thread in an asynchronous httpwebrequest callback in a browser helper object. The current document and windows don’t reflect those witnessed on the calling thread, so I can’t update the UI as required.
Can anyone help?
Cheers
I’m not certain what context you’re in, but in WinForms, you can access the main Form’s UI thread from another thread with
form.Invoke()like this: