开发者

C# - Winforms webBrowser

开发者 https://www.devze.com 2023-01-01 10:48 出处:网络
How can i pass the URL property in web browser into an if statement.... private void button2_Click(object sender, EventArgs e)

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 equ开发者_Go百科al to http://statsverse.com/
        }

    }


Use WebBrowser.Navigate()


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

0

精彩评论

暂无评论...
验证码 换一张
取 消