⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webbrowser.cs

📁 XP界面优化精灵, XP界面优化精灵
💻 CS
📖 第 1 页 / 共 3 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.IO ;
namespace XP界面优化精灵
{
	/// <summary>
	/// WebBrowser 的摘要说明。
	/// </summary>
	public class WebBrowser : System.Windows.Forms.Form
	{
		#region 自定义变量
		public static int tab=0;
		BrowserForm bf=new BrowserForm ();
		#endregion
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.TabPage tp_1;
		private System.Windows.Forms.TabControl tabControl;
		private System.Windows.Forms.ListBox imgList;
		private System.Windows.Forms.CheckBox cb_1;
		private System.Windows.Forms.CheckBox cb_2;
		private System.Windows.Forms.Button bn_ini;
		private System.Windows.Forms.Button bn_save;
		private System.Windows.Forms.Button bn_add;
		private System.Windows.Forms.Button bn_showbrowForm;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.PictureBox pictureBox2;
		private System.Windows.Forms.TextBox tb_path;
		private System.Windows.Forms.Button bn_selecBitmap;
		private System.Windows.Forms.PictureBox BrandBitmap;
		private System.Windows.Forms.Button bn_saveb;
		private System.Windows.Forms.Button bn_inib;
		private System.Windows.Forms.TabPage tp_4;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.TextBox tb_IEcaption;
		private System.Windows.Forms.PictureBox pictureBox3;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label lb_epIecaption;
		private System.Windows.Forms.Button bn_savec;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.Button bn_delIERMenu;
		private System.Windows.Forms.ListBox rightMenulist;
		private System.Windows.Forms.PictureBox pictureBox4;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.GroupBox groupBox4;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.PictureBox pictureBox5;
		private System.Windows.Forms.GroupBox groupBox5;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.PictureBox pictureBox6;
		private System.Windows.Forms.GroupBox mainpage;
		private System.Windows.Forms.TextBox WebAddress;
		private System.Windows.Forms.Button bn_use;
		private System.Windows.Forms.Button bn_useab;
		private System.Windows.Forms.Button ClsHistory;
		private System.Windows.Forms.Button bn_usefs;
		private System.Windows.Forms.Button bn_cancelfs;
		private System.Windows.Forms.TabPage tp_2;
		private System.Windows.Forms.TabPage tp_3;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public WebBrowser()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(WebBrowser));
			this.tabControl = new System.Windows.Forms.TabControl();
			this.tp_1 = new System.Windows.Forms.TabPage();
			this.bn_showbrowForm = new System.Windows.Forms.Button();
			this.bn_add = new System.Windows.Forms.Button();
			this.label2 = new System.Windows.Forms.Label();
			this.bn_ini = new System.Windows.Forms.Button();
			this.bn_save = new System.Windows.Forms.Button();
			this.label1 = new System.Windows.Forms.Label();
			this.cb_2 = new System.Windows.Forms.CheckBox();
			this.cb_1 = new System.Windows.Forms.CheckBox();
			this.imgList = new System.Windows.Forms.ListBox();
			this.tp_3 = new System.Windows.Forms.TabPage();
			this.BrandBitmap = new System.Windows.Forms.PictureBox();
			this.pictureBox2 = new System.Windows.Forms.PictureBox();
			this.bn_saveb = new System.Windows.Forms.Button();
			this.bn_selecBitmap = new System.Windows.Forms.Button();
			this.tb_path = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.label3 = new System.Windows.Forms.Label();
			this.bn_inib = new System.Windows.Forms.Button();
			this.tp_2 = new System.Windows.Forms.TabPage();
			this.bn_delIERMenu = new System.Windows.Forms.Button();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.rightMenulist = new System.Windows.Forms.ListBox();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.bn_savec = new System.Windows.Forms.Button();
			this.lb_epIecaption = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.pictureBox3 = new System.Windows.Forms.PictureBox();
			this.tb_IEcaption = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.tp_4 = new System.Windows.Forms.TabPage();
			this.groupBox5 = new System.Windows.Forms.GroupBox();
			this.bn_cancelfs = new System.Windows.Forms.Button();
			this.bn_usefs = new System.Windows.Forms.Button();
			this.label10 = new System.Windows.Forms.Label();
			this.pictureBox6 = new System.Windows.Forms.PictureBox();
			this.groupBox4 = new System.Windows.Forms.GroupBox();
			this.ClsHistory = new System.Windows.Forms.Button();
			this.label9 = new System.Windows.Forms.Label();
			this.pictureBox5 = new System.Windows.Forms.PictureBox();
			this.mainpage = new System.Windows.Forms.GroupBox();
			this.bn_useab = new System.Windows.Forms.Button();
			this.bn_use = new System.Windows.Forms.Button();
			this.WebAddress = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.pictureBox4 = new System.Windows.Forms.PictureBox();
			this.tabControl.SuspendLayout();
			this.tp_1.SuspendLayout();
			this.tp_3.SuspendLayout();
			this.tp_2.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.groupBox1.SuspendLayout();
			this.tp_4.SuspendLayout();
			this.groupBox5.SuspendLayout();
			this.groupBox4.SuspendLayout();
			this.mainpage.SuspendLayout();
			this.SuspendLayout();
			// 
			// tabControl
			// 
			this.tabControl.Controls.Add(this.tp_1);
			this.tabControl.Controls.Add(this.tp_3);
			this.tabControl.Controls.Add(this.tp_2);
			this.tabControl.Controls.Add(this.tp_4);
			this.tabControl.Location = new System.Drawing.Point(6, 6);
			this.tabControl.Name = "tabControl";
			this.tabControl.SelectedIndex = 0;
			this.tabControl.Size = new System.Drawing.Size(462, 336);
			this.tabControl.TabIndex = 1;
			this.tabControl.SelectedIndexChanged += new System.EventHandler(this.tabControl_SelectedIndexChanged);
			// 
			// tp_1
			// 
			this.tp_1.BackColor = System.Drawing.Color.White;
			this.tp_1.Controls.Add(this.bn_showbrowForm);
			this.tp_1.Controls.Add(this.bn_add);
			this.tp_1.Controls.Add(this.label2);
			this.tp_1.Controls.Add(this.bn_ini);
			this.tp_1.Controls.Add(this.bn_save);
			this.tp_1.Controls.Add(this.label1);
			this.tp_1.Controls.Add(this.cb_2);
			this.tp_1.Controls.Add(this.cb_1);
			this.tp_1.Controls.Add(this.imgList);
			this.tp_1.Location = new System.Drawing.Point(4, 21);
			this.tp_1.Name = "tp_1";
			this.tp_1.Size = new System.Drawing.Size(454, 311);
			this.tp_1.TabIndex = 0;
			this.tp_1.Text = "工具栏背景";
			// 
			// bn_showbrowForm
			// 
			this.bn_showbrowForm.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.bn_showbrowForm.Location = new System.Drawing.Point(362, 168);
			this.bn_showbrowForm.Name = "bn_showbrowForm";
			this.bn_showbrowForm.TabIndex = 16;
			this.bn_showbrowForm.Text = "隐藏预览窗";
			this.bn_showbrowForm.Click += new System.EventHandler(this.bn_showbrowForm_Click);
			// 
			// bn_add
			// 
			this.bn_add.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.bn_add.Location = new System.Drawing.Point(362, 134);
			this.bn_add.Name = "bn_add";
			this.bn_add.TabIndex = 15;
			this.bn_add.Text = "添加背景";
			this.bn_add.Click += new System.EventHandler(this.bn_add_Click);
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(20, 284);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(100, 12);
			this.label2.TabIndex = 14;
			this.label2.Text = "将此图片应用到:";
			// 
			// bn_ini
			// 
			this.bn_ini.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.bn_ini.Location = new System.Drawing.Point(362, 100);
			this.bn_ini.Name = "bn_ini";
			this.bn_ini.TabIndex = 13;
			this.bn_ini.Text = "还原";
			this.bn_ini.Click += new System.EventHandler(this.bn_ini_Click);
			// 
			// bn_save
			// 
			this.bn_save.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.bn_save.Location = new System.Drawing.Point(362, 66);
			this.bn_save.Name = "bn_save";
			this.bn_save.TabIndex = 12;
			this.bn_save.Text = "保存";
			this.bn_save.Click += new System.EventHandler(this.bn_save_Click);
			// 
			// label1
			// 
			this.label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label1.Location = new System.Drawing.Point(20, 30);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(248, 18);
			this.label1.TabIndex = 4;
			this.label1.Text = "双击列表框中的图片即可更改浏览器背景";
			// 
			// cb_2
			// 
			this.cb_2.Checked = true;
			this.cb_2.CheckState = System.Windows.Forms.CheckState.Checked;
			this.cb_2.Location = new System.Drawing.Point(218, 278);
			this.cb_2.Name = "cb_2";
			this.cb_2.TabIndex = 2;
			this.cb_2.Text = "IE浏览器";
			// 
			// cb_1
			// 
			this.cb_1.Checked = true;
			this.cb_1.CheckState = System.Windows.Forms.CheckState.Checked;
			this.cb_1.Location = new System.Drawing.Point(130, 278);
			this.cb_1.Name = "cb_1";
			this.cb_1.TabIndex = 1;
			this.cb_1.Text = "资源浏览器";
			// 
			// imgList
			// 
			this.imgList.ItemHeight = 12;
			this.imgList.Location = new System.Drawing.Point(20, 66);
			this.imgList.Name = "imgList";
			this.imgList.Size = new System.Drawing.Size(316, 208);
			this.imgList.TabIndex = 0;
			this.imgList.DoubleClick += new System.EventHandler(this.bn_save_Click);
			this.imgList.SelectedIndexChanged += new System.EventHandler(this.imgList_SelectedIndexChanged);
			// 
			// tp_3
			// 
			this.tp_3.BackColor = System.Drawing.Color.White;
			this.tp_3.Controls.Add(this.BrandBitmap);
			this.tp_3.Controls.Add(this.pictureBox2);
			this.tp_3.Controls.Add(this.bn_saveb);
			this.tp_3.Controls.Add(this.bn_selecBitmap);
			this.tp_3.Controls.Add(this.tb_path);
			this.tp_3.Controls.Add(this.label4);
			this.tp_3.Controls.Add(this.pictureBox1);
			this.tp_3.Controls.Add(this.label3);
			this.tp_3.Controls.Add(this.bn_inib);
			this.tp_3.Location = new System.Drawing.Point(4, 21);
			this.tp_3.Name = "tp_3";
			this.tp_3.Size = new System.Drawing.Size(454, 311);
			this.tp_3.TabIndex = 1;
			this.tp_3.Text = "动画图标";
			// 
			// BrandBitmap
			// 
			this.BrandBitmap.Location = new System.Drawing.Point(38, 120);
			this.BrandBitmap.Name = "BrandBitmap";
			this.BrandBitmap.Size = new System.Drawing.Size(24, 24);
			this.BrandBitmap.TabIndex = 20;
			this.BrandBitmap.TabStop = false;
			// 
			// pictureBox2
			// 
			this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -