I still not understand

  • Thread starter Thread starter mttc
  • Start date Start date
M

mttc

I still not understand, at microsoft Example itself,

I see this line:


Public Sub QueryDataBase()

...

-->> Label1.Text = "DataSet Filled"


This is not call to UI from another thread.
 
Hi,

What exactly is the problem you are facing?

Please explain in detail, and also provide the link to the MS article you
are referring to.

HTH,
Rakesh Rajan
 
Hi,

If QueryDataBase was run on another thread, it wouldn't access UI directly -
it would have to use Control.Invoke to ensure all calls to UI are run on the
main UI thread.
So, it is just a helper subroutine, most likely a member of a form or a
control, whose responsibility, in particular, is to update the form's or the
control's UI when the query is complete.
 
Back
Top