formwebbrowser.designer.cs
来自「csharp课本的源代码」· CS 代码 · 共 169 行
CS
169 行
namespace WebBrowserExample
{
partial class FormWebBrowser
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormWebBrowser));
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.textBox1 = new System.Windows.Forms.ToolStripTextBox();
this.buttonGo = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.buttonGoBack = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.buttonGoForward = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.buttonRefresh = new System.Windows.Forms.ToolStripButton();
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
this.toolStrip1.SuspendLayout();
this.SuspendLayout();
//
// toolStrip1
//
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripLabel1,
this.textBox1,
this.buttonGo,
this.toolStripSeparator1,
this.buttonGoBack,
this.toolStripSeparator2,
this.buttonGoForward,
this.toolStripSeparator3,
this.buttonRefresh});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(476, 25);
this.toolStrip1.TabIndex = 0;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripLabel1
//
this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(29, 22);
this.toolStripLabel1.Text = "地址";
//
// textBox1
//
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(200, 25);
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
//
// buttonGo
//
this.buttonGo.Image = ((System.Drawing.Image)(resources.GetObject("buttonGo.Image")));
this.buttonGo.ImageTransparentColor = System.Drawing.Color.Magenta;
this.buttonGo.Name = "buttonGo";
this.buttonGo.Size = new System.Drawing.Size(49, 22);
this.buttonGo.Text = "链接";
this.buttonGo.Click += new System.EventHandler(this.buttonGo_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
//
// buttonGoBack
//
this.buttonGoBack.Image = ((System.Drawing.Image)(resources.GetObject("buttonGoBack.Image")));
this.buttonGoBack.ImageTransparentColor = System.Drawing.Color.Magenta;
this.buttonGoBack.Name = "buttonGoBack";
this.buttonGoBack.Size = new System.Drawing.Size(49, 22);
this.buttonGoBack.Text = "后退";
this.buttonGoBack.Click += new System.EventHandler(this.buttonGoBack_Click);
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
//
// buttonGoForward
//
this.buttonGoForward.Image = ((System.Drawing.Image)(resources.GetObject("buttonGoForward.Image")));
this.buttonGoForward.ImageTransparentColor = System.Drawing.Color.Magenta;
this.buttonGoForward.Name = "buttonGoForward";
this.buttonGoForward.Size = new System.Drawing.Size(49, 22);
this.buttonGoForward.Text = "前进";
this.buttonGoForward.Click += new System.EventHandler(this.buttonGoForward_Click);
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
//
// buttonRefresh
//
this.buttonRefresh.Image = ((System.Drawing.Image)(resources.GetObject("buttonRefresh.Image")));
this.buttonRefresh.ImageTransparentColor = System.Drawing.Color.Magenta;
this.buttonRefresh.Name = "buttonRefresh";
this.buttonRefresh.Size = new System.Drawing.Size(49, 22);
this.buttonRefresh.Text = "刷新";
this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click);
//
// webBrowser1
//
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
this.webBrowser1.Location = new System.Drawing.Point(0, 25);
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
this.webBrowser1.Name = "webBrowser1";
this.webBrowser1.Size = new System.Drawing.Size(476, 311);
this.webBrowser1.TabIndex = 1;
this.webBrowser1.Navigated += new System.Windows.Forms.WebBrowserNavigatedEventHandler(this.webBrowser1_Navigated);
//
// FormWebBrowser
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(476, 336);
this.Controls.Add(this.webBrowser1);
this.Controls.Add(this.toolStrip1);
this.Name = "FormWebBrowser";
this.Text = "WebBrowser示例";
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
private System.Windows.Forms.ToolStripTextBox textBox1;
private System.Windows.Forms.ToolStripButton buttonGo;
private System.Windows.Forms.ToolStripButton buttonGoBack;
private System.Windows.Forms.ToolStripButton buttonGoForward;
private System.Windows.Forms.ToolStripButton buttonRefresh;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.WebBrowser webBrowser1;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?