c# - Open multiple website in a single window in different tabs -


i want open no. of urls , want open 1st url in new window , after others in same window in new tabs. using c# , window application use code provided firefox not opening new tab. opens new window. here code:

private void btnsearch_click(object sender, eventargs e) {      process.start("http://google.co.in","2048");      process.start("http://google.co.in","2048"); } 

thanks in advance.

the problem starts when don't have you're browser open. else work perfect without thread.sleep.

maybe can try this

the "_blank" opens new blank page in same window "so new tab"

using system.threading;

    private void button1_click(object sender, eventargs e)     {         process.start("http://www.google.com", "_blank");         thread.sleep(2000);         process.start("http://www.google.com", "_blank");     } 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -