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

来源:互联网 发布:艾美依航空制造 知乎 编辑:程序博客网 时间:2024/06/05 02:18
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");
        }

原创粉丝点击