Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all
thnx for reading

this code from page

http://www.travian.com.sa/12341

how I can get this link and save in Stirng x
this number 12341 is changin I want get all link

thnx for all
Posted

1 solution

Dear Friend,

Try this:-

C#
yourTextBox.Text = webBrowser1.Url.ToString();


**This code will do what you are trying to achieve but you have to wait until the web browser load the url or you will get an error.

Or

Try this:-

C#
string url = "";
if (webBrowser1.Url != null)
{
    url = webBrowser1.Url.AbsoluteUri;
}
if (url == "www.google.com")
{
    label9.Text = url;
}


If the above code helps you out then don't forget to mark this as your answer.

Regards

Varun Sareen
 
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