Right ive got a question / problem with threading.
Ive made a thread object, but my first moan is that you cant pass paramaters to methods that you thread - why? Secondly What I want to do is create 5 threads that will each download a site and add it to my treeview, then when the thread is over go onto the next site, etc etc, so the user will not be "locked up" as sites download to the PocketPC (making a simple RSS reader to learn .NET fully). How would i impliment this, i managed to thread a loadAllSites() method, but it threw an exception when i tried to add stuff to the treeview and I don't fully understand why - I'm pretty new to actually programming threading.
Thanks in advance.
Ive made a thread object, but my first moan is that you cant pass paramaters to methods that you thread - why? Secondly What I want to do is create 5 threads that will each download a site and add it to my treeview, then when the thread is over go onto the next site, etc etc, so the user will not be "locked up" as sites download to the PocketPC (making a simple RSS reader to learn .NET fully). How would i impliment this, i managed to thread a loadAllSites() method, but it threw an exception when i tried to add stuff to the treeview and I don't fully understand why - I'm pretty new to actually programming threading.
Thanks in advance.