Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Automate Web Browser control in Multiple Threads

Automate Web Browser control in Multiple Threads

Scheduled Pinned Locked Moved C#
comsysadminquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sumit_Ghosh
    wrote on last edited by
    #1

    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?

    D 1 Reply Last reply
    0
    • S Sumit_Ghosh

      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?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups