简体   繁体   中英

VB.net Open new IE window

another one I cannot seem to find. But in vb.net, how do I force a new instance of IE or Chrome when clicking a button?

I may have already existing windows open, but I want to make it where when I click my button, it opens either Chrome, IE, etc. open new instance.

Is this even possible? Thanks!

The exe's should be in path so you can just run them like this

Process.Start("chrome.exe", "--new-window http://www.bing.com")
Process.Start("iexplore.exe", "http://www.bing.com")

If they aren't in path, you'll need to provide the full path to the exe, like c:\\program files\\internet explorer\\iexplore.exe

By default on my system chrome opens up a new tab if you run chrome.exe without the --new-window parameter. When I run iexplore.exe, it always opens up a new window by default.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM