📄 form1.designer.cs
字号:
namespace CsSerialport
{
partial class Form1
{
/// <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()
{
this.components = new System.ComponentModel.Container();
this.btnList = new System.Windows.Forms.Button();
this.btnOpen = new System.Windows.Forms.Button();
this.btnClose = new System.Windows.Forms.Button();
this.btnSend = new System.Windows.Forms.Button();
this.btnSendB = new System.Windows.Forms.Button();
this.lblOut = new System.Windows.Forms.Label();
this.txtboxSend = new System.Windows.Forms.TextBox();
this.txtOut = new System.Windows.Forms.TextBox();
this.txtboxPort = new System.Windows.Forms.TextBox();
this.serialPort2 = new System.IO.Ports.SerialPort(this.components);
this.txtBaud = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// btnList
//
this.btnList.Location = new System.Drawing.Point(1, 5);
this.btnList.Name = "btnList";
this.btnList.Size = new System.Drawing.Size(43, 24);
this.btnList.TabIndex = 0;
this.btnList.Text = "List";
this.btnList.UseVisualStyleBackColor = true;
this.btnList.Click += new System.EventHandler(this.btnList_Click);
//
// btnOpen
//
this.btnOpen.Location = new System.Drawing.Point(110, 5);
this.btnOpen.Name = "btnOpen";
this.btnOpen.Size = new System.Drawing.Size(43, 24);
this.btnOpen.TabIndex = 1;
this.btnOpen.Text = "Open";
this.btnOpen.UseVisualStyleBackColor = true;
this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(154, 5);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(43, 24);
this.btnClose.TabIndex = 2;
this.btnClose.Text = "Close";
this.btnClose.UseVisualStyleBackColor = true;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// btnSend
//
this.btnSend.Location = new System.Drawing.Point(109, 57);
this.btnSend.Name = "btnSend";
this.btnSend.Size = new System.Drawing.Size(43, 24);
this.btnSend.TabIndex = 3;
this.btnSend.Text = "Send";
this.btnSend.UseVisualStyleBackColor = true;
this.btnSend.Click += new System.EventHandler(this.btnSend_Click);
//
// btnSendB
//
this.btnSendB.Location = new System.Drawing.Point(154, 57);
this.btnSendB.Name = "btnSendB";
this.btnSendB.Size = new System.Drawing.Size(43, 24);
this.btnSendB.TabIndex = 4;
this.btnSendB.Text = "SdB";
this.btnSendB.UseVisualStyleBackColor = true;
this.btnSendB.Click += new System.EventHandler(this.btnSendB_Click);
//
// lblOut
//
this.lblOut.AutoSize = true;
this.lblOut.Location = new System.Drawing.Point(5, 83);
this.lblOut.Name = "lblOut";
this.lblOut.Size = new System.Drawing.Size(0, 12);
this.lblOut.TabIndex = 5;
//
// txtboxSend
//
this.txtboxSend.Location = new System.Drawing.Point(0, 32);
this.txtboxSend.Name = "txtboxSend";
this.txtboxSend.Size = new System.Drawing.Size(200, 22);
this.txtboxSend.TabIndex = 6;
//
// txtOut
//
this.txtOut.Location = new System.Drawing.Point(198, 4);
this.txtOut.Multiline = true;
this.txtOut.Name = "txtOut";
this.txtOut.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.txtOut.Size = new System.Drawing.Size(272, 208);
this.txtOut.TabIndex = 7;
//
// txtboxPort
//
this.txtboxPort.Location = new System.Drawing.Point(46, 5);
this.txtboxPort.Name = "txtboxPort";
this.txtboxPort.Size = new System.Drawing.Size(27, 22);
this.txtboxPort.TabIndex = 8;
//
// serialPort2
//
this.serialPort2.PortName = "COM3";
this.serialPort2.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.serialPort2_DataReceived);
this.serialPort2.PinChanged += new System.IO.Ports.SerialPinChangedEventHandler(this.serialPort2_PinChanged);
this.serialPort2.ErrorReceived += new System.IO.Ports.SerialErrorReceivedEventHandler(this.serialPort2_ErrorReceived);
//
// txtBaud
//
this.txtBaud.Location = new System.Drawing.Point(1, 57);
this.txtBaud.Name = "txtBaud";
this.txtBaud.Size = new System.Drawing.Size(72, 22);
this.txtBaud.TabIndex = 9;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(472, 213);
this.Controls.Add(this.txtBaud);
this.Controls.Add(this.txtboxPort);
this.Controls.Add(this.txtOut);
this.Controls.Add(this.txtboxSend);
this.Controls.Add(this.lblOut);
this.Controls.Add(this.btnSendB);
this.Controls.Add(this.btnSend);
this.Controls.Add(this.btnClose);
this.Controls.Add(this.btnOpen);
this.Controls.Add(this.btnList);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button btnList;
private System.Windows.Forms.Button btnOpen;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Button btnSend;
private System.Windows.Forms.Button btnSendB;
private System.Windows.Forms.Label lblOut;
private System.Windows.Forms.TextBox txtboxSend;
private System.Windows.Forms.TextBox txtOut;
private System.Windows.Forms.TextBox txtboxPort;
private System.IO.Ports.SerialPort serialPort2;
private System.Windows.Forms.TextBox txtBaud;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -