Skip to content

First windows application - web browser

J

Asked Aug 30, 2007, 6:41 AM EDT1 answer
Share
LinkedInX

I have a 2 part browser you can either select from a list of URLs and surf or type your own url in (this part doesn't work)

 

here are my bits of code

TypeScript
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Navigate(new Uri(comboBox1.SelectedItem.ToString()));
label1.Text = "now you're surfing the net!";
}
private void button2_Click(object sender, EventArgs e)
{
webBrowser1.Url = textbox.Text;
}

 

the top part works up to button2?!      please help!

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    webBrowser1.Navigate(textbox1.text) or what ever the string is

    Code
    private void button2_Click(object sender, EventArgs e)
    {
    webBrowser1.Navigate(textbox.Text);
    }

     

    and im glad to see new ppl taken a intreast in c# :D good luck with future apps


    and if you need any more help on webbrowser application give me a email [email protected] it was my first app aswell

    0