I'm porting a VS Add-in to VS 2010 from VS 2008 and need to be able to open the built-in web browser.
In VS 2008, it was possible to get a handle on the web browser window with code like this:
var win = _applicationObject.Windows.Item(Constants.vsWindowKindWebBrowser);
However, the same code does not work in VS 2010 when an instance of the web browser has not already been opened. Instead it gives an ArgumentException
on the Item index.