找回密码
 注册 (不支持IE浏览器)
搜索
查看: 11018|回复: 3

[教程] Winform 调用系统默认浏览器打开网页

[复制链接]

0

精华

5568

贡献

6992

赞扬

管理员

回帖
904
软币
25285
在线时间
4784 小时
注册时间
2013-6-7

黄马甲

发表于 2013-6-10 23:31:08 | 显示全部楼层 |阅读模式
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;

  5. namespace ConsoleApplication1
  6. {
  7.   class Program
  8.   {
  9.   static void Main(string[] args)
  10.   {
  11.         System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo("http://www.abc.com");
  12.         System.Diagnostics.Process Pro = System.Diagnostics.Process.Start(Info);
  13.   }
  14.   }
  15. }
复制代码
回复

使用道具 举报

0

精华

0

贡献

15

赞扬

回帖
15
软币
130
在线时间
4 小时
注册时间
2013-6-11
发表于 2013-6-12 06:13:49 | 显示全部楼层
這應該做的:
  1. Process.Start(URL)
复制代码
回复

使用道具 举报

0

精华

803

贡献

104

赞扬

正版授权组

回帖
56
软币
2064
在线时间
144 小时
注册时间
2013-6-9
QQ
发表于 2013-7-3 03:00:09 | 显示全部楼层

这个精简有效,我就是这么用的
回复

使用道具 举报

0

精华

656

贡献

7854

赞扬

回帖
222
软币
27803
在线时间
2195 小时
注册时间
2013-6-9
发表于 2013-7-5 14:11:39 | 显示全部楼层
我是这样的。
Process.Start("http://www.abc.com/");
回复

使用道具 举报

本版积分规则

Archiver|手机版|小黑屋|开发者网 ( 苏ICP备08004430号-2 )
版权所有:南京韵文科技有限公司 苏公网安备32011302322501号

GMT+8, 2026-3-1 23:52

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表