Reputation: 5779
I would like to open a new tab from my BHO done in C#. Process.Start(u) opens a new window, not a tab, and call the default browsers, which might not be IE.
I want to open the new tab to prompt the user to download and install the latest version of the BHO.
Upvotes: 0
Views: 1386
Reputation: 54600
The correct way to do this from a BHO is to use IWebBrowser2::Navigate2()
(doc link) and pass navOpenInNewTab
(doc link).
The interop exists at pinvoke.net, so you can probably start with that.
You can get the IWebBrowser2 pointer from your site by following these steps:
...but I don't know how to do it in C#.
Upvotes: 3