title: WebBrowser control in a class library
body: <p>So as the title suggests, I'm trying to use WebBrowser control in a class library. I've gone through several SO questions like <a href="https://stackoverflow.com/questions/4269800/webbrowser-control-in-a-new-thread">this excellent post</a>, but the unique thing in my situation is that the WebBrowser object must remain alive for the life of application and keep its state/cookies across different calls that the library clients will make from time to time. </p>
  
  <p>I have confirmed that WebBrowser control does not do navigation unless the thread it was created on contains a message pump. But as soon as I introduce a message pump, the code blocks at <code>Application.Run()</code> call and no further events are generated. Any help will really be appricated.</p>