C# winform 模拟键盘输入自动接入访问网络的实例

2019-12-30 14:44:38王振洲

designer.cs 代码:


namespace LoginAssistant
{
  partial class MainForm
  {
    /// <summary>
    /// Required designer variable.
    /// </summary>
    private System.ComponentModel.IContainer components = null;
 
    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    protected override void Dispose(bool disposing)
    {
      if (disposing && (components != null))
      {
        components.Dispose();
      }
      base.Dispose(disposing);
    }
 
    #region Windows Form Designer generated code
 
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {
      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
      this.btnInput = new System.Windows.Forms.Button();
      this.rtbStatus = new System.Windows.Forms.RichTextBox();
      this.btnExit = new System.Windows.Forms.Button();
      this.SuspendLayout();
      //
      // btnInput
      //
      this.btnInput.Font = new System.Drawing.Font("Consolas", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
      this.btnInput.Location = new System.Drawing.Point(46, 235);
      this.btnInput.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
      this.btnInput.Name = "btnInput";
      this.btnInput.Size = new System.Drawing.Size(86, 36);
      this.btnInput.TabIndex = 0;
      this.btnInput.Text = "重新登录";
      this.btnInput.UseVisualStyleBackColor = true;
      this.btnInput.Click += new System.EventHandler(this.btnRegister_Click);
      //
      // rtbStatus
      //
      this.rtbStatus.BackColor = System.Drawing.SystemColors.Control;
      this.rtbStatus.Dock = System.Windows.Forms.DockStyle.Top;
      this.rtbStatus.Location = new System.Drawing.Point(0, 0);
      this.rtbStatus.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
      this.rtbStatus.Name = "rtbStatus";
      this.rtbStatus.Size = new System.Drawing.Size(322, 229);
      this.rtbStatus.TabIndex = 1;
      this.rtbStatus.Text = "";
      //
      // btnExit
      //
      this.btnExit.Font = new System.Drawing.Font("Consolas", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
      this.btnExit.ForeColor = System.Drawing.Color.Red;
      this.btnExit.Location = new System.Drawing.Point(150, 235);
      this.btnExit.Name = "btnExit";
      this.btnExit.Size = new System.Drawing.Size(75, 36);
      this.btnExit.TabIndex = 2;
      this.btnExit.Text = "退出";
      this.btnExit.UseVisualStyleBackColor = true;
      this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
      //
      // MainForm
      //
      this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 13F);
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
      this.ClientSize = new System.Drawing.Size(322, 274);
      this.Controls.Add(this.btnExit);
      this.Controls.Add(this.rtbStatus);
      this.Controls.Add(this.btnInput);
      this.Font = new System.Drawing.Font("Consolas", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
      this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
      this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
      this.Name = "MainForm";
      this.Text = "无线网络助手 V20160908© vicky";
      this.ResumeLayout(false);
 
    }
 
    #endregion
 
    private System.Windows.Forms.Button btnInput;
    private System.Windows.Forms.RichTextBox rtbStatus;
    private System.Windows.Forms.Button btnExit;
  }
}