1, first relatively simple we know that there are similar methods as follows
System . Diagnostics . Process . Start ("http://www.baidu.com");
2, more flexible, you can define the window size, we want to implement the Web page script to open the page method, that is window.open
So, we are bound to think, how to invoke the script of the page? Can actually use WebBrowser to realize
//Connection stringURL="Http://www.baidu.com"; //define Scripts stringScript=@"<script language= ' javascript ' type= ' Text/javascript ' > function OpenUrl (URL) { window.open (URL, ' Test window ', ' width=400px,height=400px,directories=true,location=false,menubar=false,resizeable= False,scrollbars=yes,toolbar=false '); }</script> "; WebBrowserWB=NewWebBrowser(); WB.DocumentText=@"+Script+";//define DOM documents in WebBrowser WB.documentcompleted+=Delegate { //Execute script function WB.Document.Invokescript("OpenUrl",NewObject[]{URL}); };