资源简介

vs2005的WebBrowser控件时有NewWindow事件,可用于开发分页浏览器 分页浏览器所谓"分页",从实现上讲就是"控件的动态添加",当前浏览器产生新窗体时,先new出一个TabPage,再new一个WebBrowser,把这个WebBrowser加载了一些事件以后添加到先前的这个TabPage上,然后把这个TabPage添加到"主窗体"tabControl1中。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Reflection;

namespace simpleIE
{
    partial class AboutBox1 : Form
    {
        public AboutBox1()
        {
            InitializeComponent();

            //  Initialize the AboutBox to display the product information from the assembly information.
            //  Change assembly information settings for your application through either:
            //  - Project->Properties->Application->Assembly Information
            //  - AssemblyInfo.cs
           // this.Text = String.Format(“About {0}“ Assemblytitle);
           // this.labelProductName.Text = AssemblyProduct;
           // this.labelVersion.Text = String.Format(“Version {0}“ AssemblyVersion);
           // this.labelCopyright.Text = AssemblyCopyright;
           // this.labelCompanyName.Text = AssemblyCompany;
           // this.textBoxDescription.Text = AssemblyDescription;
        }

        #region Assembly Attribute Accessors

        public string Assemblytitle
        {
            get
            {
                // Get all title attributes on this assembly
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblytitleAttribute) false);
                // If there is at least one title attribute
                if (attributes.Length > 0)
                {
                    // Select the first one
                    AssemblytitleAttribute titleAttribute = (AssemblytitleAttribute)attributes[0];
                    // If it is not an empty string return it
                    if (titleAttribute.title != ““)
                        return titleAttribute.title;
                }
                // If there was no title attribute or if the title attribute was the empty string return the .exe name
                return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Codebase);
            }
        }

        public string AssemblyVersion
        {
            get
            {
                return Assembly.GetExecutingAssembly().GetName().Version.ToString();
            }
        }

        public string AssemblyDescription
        {
            get
            {
                // Get all Description attributes on this assembly
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute) false);
                // If there aren‘t any Description attributes return an empty string
                if (attributes.Length == 0)
                    return ““;
                // If there is a Description attribute return its value
                return ((AssemblyDescriptionAttribute)attributes[0]).Description;
            }
        }

        public string AssemblyProduct
        {
            get
            {
            

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

     目录          0  2005-12-06 12:00  simpleIE

     文件       4900  2005-12-05 16:32  simpleIE\AboutBox1.cs

     文件      10663  2005-12-05 16:32  simpleIE\AboutBox1.Designer.cs

     文件      49720  2005-12-05 16:32  simpleIE\AboutBox1.resx

     目录          0  2005-11-26 14:58  simpleIE\bin

     目录          0  2005-12-05 16:32  simpleIE\bin\Debug

     文件      77824  2005-12-06 10:48  simpleIE\bin\Debug\simpleIE.exe

     文件      50688  2005-12-06 10:48  simpleIE\bin\Debug\simpleIE.pdb

     文件       5632  2005-09-23 06:56  simpleIE\bin\Debug\simpleIE.vshost.exe

     目录          0  2005-12-05 16:18  simpleIE\bin\Release

     文件      77824  2005-12-05 16:18  simpleIE\bin\Release\simpleIE.exe

     文件      42496  2005-12-05 16:18  simpleIE\bin\Release\simpleIE.pdb

     文件       5632  2005-09-23 06:56  simpleIE\bin\Release\simpleIE.vshost.exe

     文件      15967  2005-12-05 20:01  simpleIE\Form1.cs

     文件      20623  2005-12-05 19:04  simpleIE\Form1.Designer.cs

     文件      22433  2005-12-05 19:04  simpleIE\Form1.resx

     目录          0  2005-11-30 00:13  simpleIE\image

     文件      49206  2005-11-29 23:42  simpleIE\image\16.bmp

     文件       2969  2005-11-30 00:09  simpleIE\image\16.gif

     文件       5455  2005-11-30 00:12  simpleIE\image\ie.gif

     文件       5455  2005-12-04 18:06  simpleIE\image\ie.ico

     文件        595  2005-11-28 18:26  simpleIE\image\print16.gif

     文件       1758  2005-11-28 18:22  simpleIE\image\QZoneDlgBack.ico

     文件       1758  2005-11-28 18:22  simpleIE\image\QZoneDlgBackDisable.ico

     文件       1758  2005-11-28 18:22  simpleIE\image\QZoneDlgForward.ico

     文件       1758  2005-11-28 18:22  simpleIE\image\QZoneDlgForwardDisable.ico

     文件       1758  2005-11-28 18:22  simpleIE\image\QZoneDlgInfo.ico

     文件       1758  2005-11-28 18:22  simpleIE\image\QZoneDlgMarket.ico

     文件       1758  2005-11-28 18:22  simpleIE\image\QZoneDlgRefresh.ico

     文件        679  2005-11-28 18:45  simpleIE\image\search.gif

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

评论

共有 条评论