views:

49

answers:

2

How can i pass the URL property in web browser into an if statement....

private void button2_Click(object sender, EventArgs e)
    {
        var GameStats = comboBox1.Text;
        if (GameStats == "BattleField: Bad Company 2")
        {
            //Make URL equal to http://statsverse.com/
        }

    }
+1  A: 

Use WebBrowser.Navigate()

Poma
A: 

Try webBrowser1.Navigate("http://statsverse.com/");

KMan