Automate Web Browser control in Multiple Threads
-
I want to know if its possible to automate the System.Windows.Forms.WebBrowser and make it running in multiple threads. I mean I want to login to say mysite.com , using 5 different accounts, Is it possible to do that simultaneously with 5 web browsers in 5 threads maintaining seperate sessions with the server of mysite.com, Wont the sessions overlap with each other?
-
I want to know if its possible to automate the System.Windows.Forms.WebBrowser and make it running in multiple threads. I mean I want to login to say mysite.com , using 5 different accounts, Is it possible to do that simultaneously with 5 web browsers in 5 threads maintaining seperate sessions with the server of mysite.com, Wont the sessions overlap with each other?
No, it's not. The WebBrowser will only work on the UI thread. You don't need 5 seperate threads for this. Just 5 seperate WebBrowser controls.
indianbill007 wrote:
Wont the sessions overlap with each other?
No.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...