Using webBrowser1.Url.Equals is simply comparing the current value of the Url with http//www.yahoo.com to see if they are the same. this would be good if you wanted to use it as a condition in an if statement but isn't used for setting it's value.
According to the link I sent you earlier you have to do something like the following:
// Pass in the website Url
public void MyMethod(string address)
address = "http://" + address;
// put messageBox here if required
Once you've done the above you can then get the current Url from the webBrowser by accessing the Url property (which will help solve one of your other threads on here).
thanks for your response, but i think still you do not understand that what i want
i have to three controls:
now the thing which i want:
i want to enter to the url in the textBox then i have to click on button, as i clicked the button the webBrowser will open that url which i placed in textBox
Now tell what should have i to do????
How ever for now add a textBox and a button to you form. Next double click the button so that it adds the button_Clicked method in for you and add MyMethod(textBox.Text1); inside the curly braces of the button_Clicked method. Next copy and paste the method I gave you in one of my earlier.
Unfortunatly the DaniWeb rules state that you have to show what you've done before I can help you so next time you will have to show that you have attempted to solve the problem yourself before anyone, especially myself, will help you.
I hope this helps and Google C#.Net programming for beginners. I'd rather help you acheive something through guidence than doing it for you.