this.Refresh()

  • Thread starter Thread starter KC Eric
  • Start date Start date
K

KC Eric

Hi all,

If I have an UI thread, and a worker thread,
if I want to update UI,
I know that we can use BeginInvoke,
but is it correct to use this.Refresh() in worker thread to update UI?

Thanks!

KC Eric
 
KC Eric said:
If I have an UI thread, and a worker thread,
if I want to update UI,
I know that we can use BeginInvoke,
but is it correct to use this.Refresh() in worker thread to update UI?

You will have to call the form's 'Invoke' or 'BeginInvoke' method to call
its 'Refresh' method.
 
Back
Top