c# - Control.Invoke() vs. Control.BeginInvoke() -
possible duplicate:
what's difference between invoke() , begininvoke()
first of all, apologize bad grammar since english not native tongue.
this understanding:
control.invoke(delegated_method) // executes on thread wich control created on witch holds handle ,typically main thread of winform application . control.begininvoke(delegated_method // executes asynchronously on threadpool thread .
according msdn, says
executes delegate asynchronously on thread control's underlying handle created on.
my question :
am understand begininvoke treats main thread in matter thread pool, , execute delegated method on main thread when "gets chance" ?
another question raised, possible create control not on main thread ? if give me example?
yes, executed on dispatcher of ui thread created it.
as creating control on background thread, wouldn't advise it. furthermore, haven't mentioned technology working with.
Comments
Post a Comment