Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
The code I have always opens a new (Chrome) window not tab.

What I have tried:

System.Diagnostics.Process.Start("http://");
Posted
Updated 7-Jun-19 0:39am

1 solution

Generally you do this by entering about:blank as the URL
 
Share this answer
 
Comments
john1990_1 13-Jun-19 8:27am    
In Edge it's fine, but in Chrome it opens a new windows not new tab in the existing window.
MadMyche 13-Jun-19 9:42am    
You may want to look into the Command Line switches for Chrome.
john1990_1 13-Jun-19 11:33am    
I found it, it's "-d", how to apply it when running it from an exe made in Visual Studio C# Winforms as shown in the question?
john1990_1 13-Jun-19 11:43am    
This worked, thanks!
System.Diagnostics.Process.Start("chrome.exe", "about:blank --d");
MadMyche 13-Jun-19 11:54am    
Glad that worked out for you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900