c# - Invoking a Thread .NET .this vs. .control -


I have noticed that when "return your focus back" to your main thread, "this" or control You want to do it, call it well. I have noticed that it does not matter if you give back control, so someone can tell why I will bring a control on the main thread? Does this make a difference, or the main thread is being prohibited in a prohibitive form?

What,

  this.Invoke (InvokedMethod, args)  

1 is on my main form

  button1.Invoke (InvokedMethod, args) 

P>

control uses the control handle to determine which formula controls the UI thread is, and then uses that thread to execute. It may be possible to control many UI threads (a UI thread is any thread running a message thread), or it is possible to control a non-UI thread (if programming is incorrectly controlled). Generally, there is no difference in invading the main form or control, but it can be a case under certain circumstances.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -