📄 frmserialport.designer.cs
字号:
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(63, 14);
this.label4.TabIndex = 2;
this.label4.Text = "奇偶效验";
//
// label5
//
this.label5.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("宋体", 10F);
this.label5.Location = new System.Drawing.Point(433, 7);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(49, 14);
this.label5.TabIndex = 3;
this.label5.Text = "停止位";
//
// label6
//
this.label6.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("宋体", 10F);
this.label6.Location = new System.Drawing.Point(568, 7);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(49, 14);
this.label6.TabIndex = 4;
this.label6.Text = "数据位";
//
// label7
//
this.label7.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("宋体", 10F);
this.label7.Location = new System.Drawing.Point(707, 7);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(35, 14);
this.label7.TabIndex = 5;
this.label7.Text = "仪表";
//
// cmbPortName
//
this.cmbPortName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cmbPortName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbPortName.Font = new System.Drawing.Font("宋体", 12F);
this.cmbPortName.FormattingEnabled = true;
this.cmbPortName.Items.AddRange(new object[] {
"COM1",
"COM2",
"COM3",
"COM4",
"COM5",
"COM6"});
this.cmbPortName.Location = new System.Drawing.Point(73, 3);
this.cmbPortName.Name = "cmbPortName";
this.cmbPortName.Size = new System.Drawing.Size(69, 24);
this.cmbPortName.TabIndex = 6;
//
// cmbBaudRate
//
this.cmbBaudRate.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cmbBaudRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbBaudRate.Font = new System.Drawing.Font("宋体", 12F);
this.cmbBaudRate.FormattingEnabled = true;
this.cmbBaudRate.Items.AddRange(new object[] {
"300",
"600",
"1200",
"2400",
"4800",
"9600",
"14400",
"28800",
"36000",
"115000"});
this.cmbBaudRate.Location = new System.Drawing.Point(208, 3);
this.cmbBaudRate.Name = "cmbBaudRate";
this.cmbBaudRate.Size = new System.Drawing.Size(69, 24);
this.cmbBaudRate.TabIndex = 7;
//
// cmbParity
//
this.cmbParity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cmbParity.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbParity.Font = new System.Drawing.Font("宋体", 12F);
this.cmbParity.FormattingEnabled = true;
this.cmbParity.Items.AddRange(new object[] {
"无",
"偶效验",
"奇效验"});
this.cmbParity.Location = new System.Drawing.Point(353, 3);
this.cmbParity.Name = "cmbParity";
this.cmbParity.Size = new System.Drawing.Size(69, 24);
this.cmbParity.TabIndex = 8;
//
// cmbStopBits
//
this.cmbStopBits.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cmbStopBits.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbStopBits.Font = new System.Drawing.Font("宋体", 12F);
this.cmbStopBits.FormattingEnabled = true;
this.cmbStopBits.Items.AddRange(new object[] {
"1",
"1.5",
"2"});
this.cmbStopBits.Location = new System.Drawing.Point(488, 3);
this.cmbStopBits.Name = "cmbStopBits";
this.cmbStopBits.Size = new System.Drawing.Size(69, 24);
this.cmbStopBits.TabIndex = 9;
//
// cmbDataBits
//
this.cmbDataBits.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cmbDataBits.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbDataBits.Font = new System.Drawing.Font("宋体", 12F);
this.cmbDataBits.FormattingEnabled = true;
this.cmbDataBits.Items.AddRange(new object[] {
"7",
"8",
"9"});
this.cmbDataBits.Location = new System.Drawing.Point(623, 3);
this.cmbDataBits.Name = "cmbDataBits";
this.cmbDataBits.Size = new System.Drawing.Size(69, 24);
this.cmbDataBits.TabIndex = 10;
//
// groupBox3
//
this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox3.Controls.Add(this.btnOpenPort);
this.groupBox3.Location = new System.Drawing.Point(845, 373);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(89, 51);
this.groupBox3.TabIndex = 9;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "端口状态";
//
// btnOpenPort
//
this.btnOpenPort.Anchor = System.Windows.Forms.AnchorStyles.None;
this.btnOpenPort.Location = new System.Drawing.Point(4, 15);
this.btnOpenPort.Name = "btnOpenPort";
this.btnOpenPort.Size = new System.Drawing.Size(80, 32);
this.btnOpenPort.TabIndex = 0;
this.btnOpenPort.Text = "Open Port";
this.btnOpenPort.UseVisualStyleBackColor = true;
this.btnOpenPort.Click += new System.EventHandler(this.btnOpenPort_Click);
//
// linkLabel
//
this.linkLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.linkLabel.AutoSize = true;
this.linkLabel.Location = new System.Drawing.Point(887, 27);
this.linkLabel.Name = "linkLabel";
this.linkLabel.Size = new System.Drawing.Size(35, 12);
this.linkLabel.TabIndex = 7;
this.linkLabel.TabStop = true;
this.linkLabel.Text = "&About";
this.linkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel_LinkClicked);
//
// frmSerialPort
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(938, 430);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.rtfTerminal);
this.Controls.Add(this.groupBox2);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "frmSerialPort";
this.Text = "串口通讯";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Shown += new System.EventHandler(this.frmTerminal_Shown);
this.Load += new System.EventHandler(this.frmSerialPort_Load);
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.tableLayoutPanel3.ResumeLayout(false);
this.tableLayoutPanel3.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
public enum LogMsgType { Incoming, Outgoing, Normal, Warning, Error };
private System.IO.Ports.SerialPort comport;
private System.Windows.Forms.Button btnFaSong;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.TextBox txtSendData;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.RichTextBox rtfTerminal;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.ComboBox cmbYiBiao;
private System.Windows.Forms.ComboBox cmbPortName;
private System.Windows.Forms.ComboBox cmbBaudRate;
private System.Windows.Forms.ComboBox cmbParity;
private System.Windows.Forms.ComboBox cmbStopBits;
private System.Windows.Forms.ComboBox cmbDataBits;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.Button btnOpenPort;
private System.Windows.Forms.LinkLabel linkLabel;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -