您的位置:首页 > 编程语言 > C#

C#调用浏览器打开特定网页

2017-11-17 09:30 295 查看
protected void LB1_Click1(object sender, EventArgs e)

    {

        MessageBox.Show( null, "将打开百度", "来自网页的消息",MessageBoxButtons.OKCancel,MessageBoxIcon.Information); 

        System.Diagnostics.Process.Start("Http://www.baidu.com");
    }

        private void button1_Click(object sender, EventArgs e)

        {

            Process.Start("iexplore.exe", @"http:\\www.baidu.com");

        }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: