Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to open a new tab in the default browser and select it so the user writes his desired page.

What I have tried:

C#
System.Diagnostics.Process.Start("http://About:Blank");
Posted
Updated 13-Dec-18 10:35am
v2

Try this:

C#
System.Diagnostics.Process.Start("IExplore.exe","about:Blank");
 
Share this answer
 
Comments
Richard Deeming 7-Dec-18 12:34pm    
Aha! We've found the one person who still has Internet Explorer set as his default browser. :)
To open a blank window in the user's default browser, rather than a specific browser, this seems to work:
System.Diagnostics.Process.Start("http:");

NB: For me, this opens in a new window, not a new tab in the existing browser window.
 
Share this answer
 
Comments
john1990_1 21-Dec-18 1:50am    
Thanks a lot!
john1990_1 21-Dec-18 1:52am    
What about opening only a new tab and not a whole new window? (for other people's help not for me)
I have seen a blank page referred to as blank.htm in Edge on Windows 10 also.
 
Share this answer
 

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



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