• 大小: 0.30M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: WebBrowser  浏览器  

资源简介

一个解决了webbrowser弹出默认浏览器的例子

可以在页面中随意点击一个打开新窗口的超链接测试


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;

namespace Browser
{
    public partial class AddTimer : Form
    {
        Timer timer;
        Main main;
         
        public AddTimer(Timer _timerMain _main)
        {
            InitializeComponent();
            timer = _timer;
            main = _main;
        }

        public static AddTimer newForm = null;

        public static AddTimer GetInstance(Timer _timer Main _main)
        {
            if (newForm == null || newForm.IsDisposed == true)//newForm.IsDisposed == true必需,否则会出现“访问已释放资源”的异常
            {
                newForm = new A

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       6713  2011-04-14 11:22  Browser\AddTimer.cs

     文件       9669  2011-04-14 10:47  Browser\AddTimer.Designer.cs

     文件      15892  2011-04-14 10:47  Browser\AddTimer.resx

     文件        916  2011-07-22 14:10  Browser\app.config

     文件     157696  2011-07-22 14:11  Browser\bin\Debug\Browser.exe

     文件        916  2011-07-22 14:10  Browser\bin\Debug\Browser.exe.config

     文件     146944  2011-07-22 14:11  Browser\bin\Debug\Browser.pdb

     文件      11592  2011-07-22 14:11  Browser\bin\Debug\Browser.vshost.exe

     文件        916  2011-07-22 14:10  Browser\bin\Debug\Browser.vshost.exe.config

     文件        490  2010-03-17 22:39  Browser\bin\Debug\Browser.vshost.exe.manifest

     文件         74  2012-02-15 15:06  Browser\bin\Debug\system.ini

     文件      10471  2011-07-22 17:32  Browser\Browser.csproj

     文件        587  2011-07-22 10:23  Browser\Browser.csproj.user

     文件       7877  2011-07-22 11:30  Browser\BrowserControl.cs

     文件       1956  2011-04-07 13:51  Browser\BrowserControl.Designer.cs

     文件       5814  2011-04-07 13:51  Browser\BrowserControl.resx

     文件       3186  2011-07-22 14:02  Browser\BrowserWindows.cs

     文件       2417  2011-07-22 11:04  Browser\BrowserWindows.Designer.cs

     文件      43940  2011-07-22 11:04  Browser\BrowserWindows.resx

     文件       4569  2011-04-14 10:48  Browser\Config.cs

     文件       8714  2011-04-14 10:48  Browser\Config.Designer.cs

     文件      16095  2011-04-14 10:48  Browser\Config.resx

     文件      25214  2011-04-13 16:10  Browser\explorer16.ICO

     文件      17087  2011-04-07 15:19  Browser\ExtendedWebBrowser.cs

     文件       6518  2011-04-13 10:33  Browser\Image\ico\add.ico

     文件       6518  2011-04-13 10:33  Browser\Image\ico\applications.ico

     文件       6518  2011-04-08 08:29  Browser\Image\ico\chat.ico

     文件      25214  2011-04-13 16:09  Browser\Image\ico\explorer16.ICO

     文件      13430  2011-04-13 16:20  Browser\Image\ico\folder.ico

     文件       9073  2011-04-13 15:37  Browser\Main.cs

............此处省略66个文件信息

评论

共有 条评论