locked
WebBrowser multi-threaded RRS feed

  • Question

  • Hi,

    I have a main form that will be a control center which has a list where element will have
    a button to launch a process with "BackgroundWorker" an application that have a "WebBrowser" inside.

    I'm getting "Unable to get the window handle for the 'WebBrowser' control. Windowless ActiveX controls are not supported."

    That was working fine before adding the "BackgroundWorker".

    My understanding is the "WebBrowser" must be running on the main thread?

    I want a "WebBrowser" object on different thread for crawling multiple sites.

    Thanks.

    Allen
    • Moved by jack 321 Wednesday, June 18, 2008 3:22 AM off topic
    Friday, June 13, 2008 8:28 PM

Answers

All replies

  • What are you doing once you crawl to the site?
    I need a job!
    Friday, June 13, 2008 8:40 PM
  • Web Pages are from on-line store.
    I extract their data to get products information for our company.
    Saturday, June 14, 2008 12:07 AM
  • If you are performing crawling and no rendering to the UI, i would recommend the use of WebClient instead.
    Tim Van Wassenhove - Please remember to mark the replies as answers if they help.
    Saturday, June 14, 2008 1:33 PM
  • Thanks for the information.

    That class is to simple. I might encounter JAVA site, need to simulate click (add to basket, next page, etc).

    Anyone has a solution to my problem?

    The only thing I can see is to have each of my class as an executable.
    But the problem will be how to communicate back to my "Control Center"?
    I want my "Control Center" to receive status (progress bar & Message) and
    to be able to Start/Cancel the crawl.

    Thanks.

    Allen
    Saturday, June 14, 2008 11:45 PM
  • Discussion in Windows Forms General


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Wednesday, June 18, 2008 3:22 AM
  • This question was moved into the Off Topic forum. I can move it into a specific forum if you'd like.

    Thanks!


    Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)

    Thursday, May 10, 2012 7:41 AM