Click here to Skip to main content
15,919,613 members

Comments by james.mason (Top 1 by date)

james.mason 13-Dec-11 23:14pm View    
If you run the above example as is... this will "hang" the app as the UI thread is receiving 2 calls at the same time. However, if you change this to a BeginInvoke instead this runs fine, however the final value ends up being "2" instead of "3". This is because the invoked (aysnc) call waits until the main thread (The lost focus event) has finished before processing it.

Ideally we are wanting to ensure that the order of the events remains the same as they are called... i.e. value set to "1", then "2", then "3"