Click here to Skip to main content
15,998,673 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Detail: I have a URL . Suppose in this URL page there is hyperlink "See".

I want URL where "See" will redirect.

What I have tried:

I tried

WebBrowser webBrowser1 = new WebBrowser();
webBrowser1.Navigate(new Uri("http://www.microsoft.com"));
webBrowser1.Document.All.GetElementsByName("See");

But webBrowser is not loading.
Posted
Updated 22-Sep-17 6:23am
Comments
Karthik_Mahalingam 22-Sep-17 8:50am    
not clear,
Use Improve question to add more info to the question.

1 solution

The WebBrowser.Navigate[^] method returns immediately. It does not wait for the page to load.

You won't be able to access any elements in the page until the DocumentCompleted[^] event has fired.
 
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