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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top