WebBrowser Control in a new thread

前端 未结 4 1501
执笔经年
执笔经年 2020-11-21 06:24

I have a list Uri\'s that I want \"clicked\" To achieve this I\"m trying to create a new web-browser control per Uri. I create a new thread per Uri. The problem I\'m having

4条回答
  •  遇见更好的自我
    2020-11-21 06:50

    From my experience in the past the webbrowser does not like operating outside of the main application thread.

    Try using httpwebrequests instead, you can set them as asynchronous and create a handler for the response to know when it is succesfull:

    how-to-use-httpwebrequest-net-asynchronously

提交回复
热议问题