Saturday, May 22, 2010

Need code help... C#... invalid URI...?

Grr stupid 1000 char limit...





private void button1_Click(object sender, EventArgs e)


{


webBrowser1.Navigate(new Uri(textBox1.ToString()));


}





i cant figure out whats wrong with that... it says invalid Uri... i dont see anything wrong with it but im a bit of a novice at c#... its supposed to be a text box that is the address bar of my browser...





thanks





Sim'i

Need code help... C#... invalid URI...?
webBrowser1.Navigate(new Uri(textBox1.ToString()));





try to add .text to the textbox1





ex:





webBrowser1.Navigate(new Uri(textBox1.text.ToString));





or use





convert.tostring(textbox1.text)


No comments:

Post a Comment