I'm using VS Express and have a Windows form that uses the My.Computer.FileSystem.GetDirectories to get a list of files in a directory and then using the My.Computer.FileSystem.CopyFile to copy the files in the directory to a new location. As each file is copied I'm updating a ListBox (adding an item). After about 2-3 files the ListBox is no longer updated (even tried Refreshing the ListBox and/or Form) and if there are very many files I get the ContextSwitchDeadlock error but I can hit continue and the process will finish. Only after all of the files are copied and the process is complete does the ListBox show all of the added items. How can I get the ListBox to update after each file copy and how can I prevent the ContextSwitchDeadlock error

ContextSwitchDeadlock was detected - CLR unable to switch contexts
CLT
What Language are you developing in
These types of questions should really be asked in the language specific forums as you will get a better answer. Remember that even though you are using visual studio express the coding principles and language are the same as the full package and you can post questions in the relevant groups.
ChrisMo
These might be helpful:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=86853&SiteID=1
http://blogs.msdn.com/jmstall/archive/2005/11/11/ContextSwitchDeadLock.aspx
http://msdn2.microsoft.com/en-us/library/ms172233.aspx