formsearch.designer.cs
来自「csharp课本的源代码」· CS 代码 · 共 224 行
CS
224 行
namespace InternetSearchExample
{
partial class FormSearch
{
/// <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()
{
this.label1 = new System.Windows.Forms.Label();
this.textBoxUrl = new System.Windows.Forms.TextBox();
this.buttonSearch = new System.Windows.Forms.Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.listBoxLinks = new System.Windows.Forms.ListBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.listBoxImage = new System.Windows.Forms.ListBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox5.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(14, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 0;
this.label1.Text = "搜索网址";
//
// textBoxUrl
//
this.textBoxUrl.Location = new System.Drawing.Point(73, 13);
this.textBoxUrl.Name = "textBoxUrl";
this.textBoxUrl.Size = new System.Drawing.Size(440, 21);
this.textBoxUrl.TabIndex = 1;
this.textBoxUrl.Text = "http://news.sohu.com";
//
// buttonSearch
//
this.buttonSearch.Location = new System.Drawing.Point(531, 12);
this.buttonSearch.Name = "buttonSearch";
this.buttonSearch.Size = new System.Drawing.Size(75, 23);
this.buttonSearch.TabIndex = 3;
this.buttonSearch.Text = "开始搜索";
this.buttonSearch.UseVisualStyleBackColor = true;
this.buttonSearch.Click += new System.EventHandler(this.buttonSearch_Click);
//
// pictureBox1
//
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.Location = new System.Drawing.Point(3, 17);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(165, 153);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.pictureBox1.TabIndex = 5;
this.pictureBox1.TabStop = false;
//
// webBrowser1
//
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
this.webBrowser1.Location = new System.Drawing.Point(3, 17);
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
this.webBrowser1.Name = "webBrowser1";
this.webBrowser1.Size = new System.Drawing.Size(404, 154);
this.webBrowser1.TabIndex = 6;
//
// richTextBox1
//
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(3, 17);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(593, 136);
this.richTextBox1.TabIndex = 7;
this.richTextBox1.Text = "";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.pictureBox1);
this.groupBox1.Location = new System.Drawing.Point(12, 145);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(171, 173);
this.groupBox1.TabIndex = 8;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "图片预览";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.richTextBox1);
this.groupBox2.Location = new System.Drawing.Point(16, 325);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(599, 156);
this.groupBox2.TabIndex = 9;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "网页对应的源文件";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.listBoxLinks);
this.groupBox3.Location = new System.Drawing.Point(19, 40);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(306, 99);
this.groupBox3.TabIndex = 10;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "搜索结果1--网页中包含的超链接";
//
// listBoxLinks
//
this.listBoxLinks.Dock = System.Windows.Forms.DockStyle.Fill;
this.listBoxLinks.FormattingEnabled = true;
this.listBoxLinks.HorizontalScrollbar = true;
this.listBoxLinks.ItemHeight = 12;
this.listBoxLinks.Location = new System.Drawing.Point(3, 17);
this.listBoxLinks.Name = "listBoxLinks";
this.listBoxLinks.Size = new System.Drawing.Size(300, 76);
this.listBoxLinks.TabIndex = 0;
//
// groupBox4
//
this.groupBox4.Controls.Add(this.webBrowser1);
this.groupBox4.Location = new System.Drawing.Point(202, 145);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(410, 174);
this.groupBox4.TabIndex = 11;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "网页预览";
//
// groupBox5
//
this.groupBox5.Controls.Add(this.listBoxImage);
this.groupBox5.Location = new System.Drawing.Point(331, 42);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(278, 99);
this.groupBox5.TabIndex = 10;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "搜索结果2--网页中包含的图片";
//
// listBoxImage
//
this.listBoxImage.Dock = System.Windows.Forms.DockStyle.Fill;
this.listBoxImage.FormattingEnabled = true;
this.listBoxImage.HorizontalScrollbar = true;
this.listBoxImage.ItemHeight = 12;
this.listBoxImage.Location = new System.Drawing.Point(3, 17);
this.listBoxImage.Name = "listBoxImage";
this.listBoxImage.Size = new System.Drawing.Size(272, 76);
this.listBoxImage.TabIndex = 0;
this.listBoxImage.Click += new System.EventHandler(this.listBoxImage_Click);
//
// FormSearch
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(630, 493);
this.Controls.Add(this.groupBox4);
this.Controls.Add(this.groupBox5);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.buttonSearch);
this.Controls.Add(this.textBoxUrl);
this.Controls.Add(this.label1);
this.Name = "FormSearch";
this.Text = "Internet资源搜索";
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
this.groupBox4.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBoxUrl;
private System.Windows.Forms.Button buttonSearch;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.WebBrowser webBrowser1;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.ListBox listBoxLinks;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.ListBox listBoxImage;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?