1

i have url's of website in a list i want to open them one by one in a web browser using c#

2
  • Can you give a bit more information like: When should this links be opened - when a user visits a website and clicks a button for example or you have your own windows application? Do you need to open the urls in different browser windows or one after another? Commented Jan 6, 2010 at 8:11
  • thanks for your prompt reply . but i want to open that page in my webbrowser control one by one in a same forms.webbrowser control. Commented Jan 6, 2010 at 8:27

2 Answers 2

1
foreach (var url in urls) { Process.Start("iexplore.exe", url); } 
Sign up to request clarification or add additional context in comments.

2 Comments

thanks for your prompt reply . but i want to open that page in my webbrowser control.
Then: webBrowser1.Navigate(url). If you want to open all the urls you will need to create multiple forms each with it's own browser control.
0

You should be able to just shell the URL, e.g.

System.Diagnostics.Process.Start("http://www.stackoverflow.com") 

The web page will be displayed in the user's default browser.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.