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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -