资源简介
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个文件信息
相关资源
- 易语言加密记事本简单例程源码
- 简单好用的Nhibernate代码自动生成工具
- 无边框图片浏览器(透明背景)
- 一个基于Swift的提示HUD,超级简单易用
- phong模型(简单光照模型)
- 一个超简单的企业管理系统(带ACCE
- 八三编码器设计 VHDL代码 简单,包附
- 黑白棋(带简单AI)
- jQuery ajax实现简单登录验证
- 编写简单的RMI程序 多线程web 服务器
- 旋转矩阵求欧拉角的简单算法
- 51单片机基于protues的几个仿真实例
- 小型抽签程序 C 简单实用
- 一个简单的verilog编写的DMA IP CORE,和
- 简单的房屋租赁系统
- 静态网页简单的作业
- 分页 24款样式页脚代码.rar
- 分页系统模拟实验 操作系统 课程设
- IOCP 类 简单的IOCP(IO完成端口)服务
- midi电子琴简单设计(附源代码).ra
- windows下制作macOS安装U盘,绝对简单好
- 一个简单实用个人日记管理系统
- 基于swing的简单聊天器(兼传输文件)
- 简单三层架构,经典小程序
- 用MFC实现简单的画图功能
- 简单函数发生器,能产生常见的三种
- 简单的交互式图形系统的实现
- U盘量产工具 全世界最简单教程
- jdbcTemplate分页彻底解决,使用游标滚
- 简单的9个页面静态网页,适合做个人
评论
共有 条评论