View Single Post
  #2 (permalink)  
Old November 27th, 2009, 10:23 PM
BillS BillS is offline
Wrox Author
 
Join Date: Aug 2003
Location: Oceanside, CA, USA.
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
Default Old Version

I believe the issue is with the age of the book. In .NET 1.1 and before you could directly access the UI elements on the main thread from a worker thread. However, in .NET 2.0 (I believe) this changed so that you could no longer directly access UI elements from a worker thread. The samples written to do so will not work on current versions of .NET. Take a look at threading from a new version of the book (the code sample) and I expect you'll find that it no longer directly accesses the UI elements from a worker thread.
Reply With Quote