C sharp串口程序源码(3)

2019-03-16 18:51

this.label4.Text = \校验位:\

//

// label3 //

this.label3.AutoSize = true;

this.label3.Location = new System.Drawing.Point(11, 52); this.label3.Name = \

this.label3.Size = new System.Drawing.Size(53, 12); this.label3.TabIndex = 12; this.label3.Text = \波特率:\ // // label2

//

this.label2.AutoSize = true;

this.label2.Location = new System.Drawing.Point(11, 23); this.label2.Name = \

this.label2.Size = new System.Drawing.Size(53, 12); this.label2.TabIndex = 11; this.label2.Text = \端 口:\ //

// StopBitsCbB

//

this.StopBitsCbB.FormattingEnabled = true;

this.StopBitsCbB.Items.AddRange(new object[] { \

\ \

\

this.StopBitsCbB.Location = new System.Drawing.Point(72, 141); this.StopBitsCbB.Name = \

this.StopBitsCbB.Size = new System.Drawing.Size(71, 20); this.StopBitsCbB.TabIndex = 10; this.StopBitsCbB.Text = \ //

// DataBitsCbB //

this.DataBitsCbB.FormattingEnabled = true; this.DataBitsCbB.Items.AddRange(new object[] { \ \ \

\

this.DataBitsCbB.Location = new System.Drawing.Point(72, 110); this.DataBitsCbB.Name = \

this.DataBitsCbB.Size = new System.Drawing.Size(71, 20);

this.DataBitsCbB.TabIndex = 9; this.DataBitsCbB.Text = \//

// ParityCbB

//

this.ParityCbB.FormattingEnabled = true; this.ParityCbB.Items.AddRange(new object[] { \ \ \ \

\

this.ParityCbB.Location = new System.Drawing.Point(72, 79); this.ParityCbB.Name = \

this.ParityCbB.Size = new System.Drawing.Size(71, 20); this.ParityCbB.TabIndex = 8; this.ParityCbB.Text = \ //

// BaudrateCbB //

this.BaudrateCbB.FormattingEnabled = true;

this.BaudrateCbB.Items.AddRange(new object[] { \\

\ \ \ \ \ \ \

this.BaudrateCbB.Location = new System.Drawing.Point(72, 49); this.BaudrateCbB.Name = \

this.BaudrateCbB.Size = new System.Drawing.Size(71, 20); this.BaudrateCbB.TabIndex = 7; this.BaudrateCbB.Text = \ //

// ClrRxBoxBtn

//

this.ClrRxBoxBtn.Location = new System.Drawing.Point(88, 204); this.ClrRxBoxBtn.Name = \

this.ClrRxBoxBtn.Size = new System.Drawing.Size(70, 23); this.ClrRxBoxBtn.TabIndex = 9;

this.ClrRxBoxBtn.Text = \清空显示\

this.ClrRxBoxBtn.UseVisualStyleBackColor = true;

this.ClrRxBoxBtn.Click += new System.EventHandler(this.ClrRxBoxBtn_Click); //

// HexDisplayChk

//

this.HexDisplayChk.AutoSize = true; this.HexDisplayChk.Enabled = false; this.HexDisplayChk.Font = new

System.Drawing.Font(\宋体\

9F,

System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.HexDisplayChk.Location = new System.Drawing.Point(12, 246); this.HexDisplayChk.Name = \

this.HexDisplayChk.Size = new System.Drawing.Size(96, 16); this.HexDisplayChk.TabIndex = 10;

this.HexDisplayChk.Text = \十六进制显示\

this.HexDisplayChk.UseVisualStyleBackColor = true; //

// AutoSendChk //

this.AutoSendChk.AutoSize = true; this.AutoSendChk.Enabled = false; this.AutoSendChk.Location = new System.Drawing.Point(12, 290); this.AutoSendChk.Name = \

this.AutoSendChk.Size = new System.Drawing.Size(72, 16);

this.AutoSendChk.TabIndex = 11;

this.AutoSendChk.Text = \自动发送\

this.AutoSendChk.UseVisualStyleBackColor = true; this.AutoSendChk.CheckedChanged

+=

System.EventHandler(this.AutoSendChk_CheckedChanged); //

// HexSendChk //

this.HexSendChk.AutoSize = true; this.HexSendChk.Enabled = false;

this.HexSendChk.Location = new System.Drawing.Point(12, 268); this.HexSendChk.Name = \

this.HexSendChk.Size = new System.Drawing.Size(96, 16); this.HexSendChk.TabIndex = 12;

this.HexSendChk.Text = \十六进制发送\ this.HexSendChk.UseVisualStyleBackColor = true; //

// AutoTxTime //

this.AutoTxTime.Location = new System.Drawing.Point(94, 85);

new

this.AutoTxTime.Name = \

this.AutoTxTime.Size = new System.Drawing.Size(49, 21); this.AutoTxTime.TabIndex = 13; this.AutoTxTime.Text = \//

// label7 //

this.label7.AutoSize = true;

this.label7.Location = new System.Drawing.Point(10, 320); this.label7.Name = \

this.label7.Size = new System.Drawing.Size(89, 12); this.label7.TabIndex = 14;

this.label7.Text = \发送间隔(ms)\ //

// groupBox2 //

this.groupBox2.Controls.Add(this.AutoTxTime);

this.groupBox2.Location = new System.Drawing.Point(7, 229); this.groupBox2.Name = \

this.groupBox2.Size = new System.Drawing.Size(154, 115); this.groupBox2.TabIndex = 15;

this.groupBox2.TabStop = false; this.groupBox2.Text = \发送设置\//

// TxCount

//

this.TxCount.BackColor = System.Drawing.SystemColors.Info; this.TxCount.Location = new System.Drawing.Point(192, 315); this.TxCount.Name = \ this.TxCount.ReadOnly = true;

this.TxCount.Size = new System.Drawing.Size(58, 21); this.TxCount.TabIndex = 16; this.TxCount.Text = \ // // RxCount //

this.RxCount.BackColor = System.Drawing.SystemColors.Info; this.RxCount.Location = new System.Drawing.Point(289, 315); this.RxCount.Name = \

this.RxCount.ReadOnly = true;

this.RxCount.Size = new System.Drawing.Size(58, 21); this.RxCount.TabIndex = 17; this.RxCount.Text = \ //

// ClrBtn //

this.ClrBtn.Location = new System.Drawing.Point(361, 314); this.ClrBtn.Name = \

this.ClrBtn.Size = new System.Drawing.Size(75, 23);

this.ClrBtn.TabIndex = 18; this.ClrBtn.Text = \清空计数\

this.ClrBtn.UseVisualStyleBackColor = true;

this.ClrBtn.Click += new System.EventHandler(this.ClrBtn_Click); // // label8 //

this.label8.AutoSize = true;

this.label8.Location = new System.Drawing.Point(167, 320); this.label8.Name = \

this.label8.Size = new System.Drawing.Size(23, 12); this.label8.TabIndex = 19; this.label8.Text = \ // // label9 // this.label9.AutoSize = true;

this.label9.Location = new System.Drawing.Point(263, 320); this.label9.Name = \

this.label9.Size = new System.Drawing.Size(23, 12);

this.label9.TabIndex = 20; this.label9.Text = \ //

// RefreshSerialPortsBtn //

this.RefreshSerialPortsBtn.Location = new System.Drawing.Point(12, 204); this.RefreshSerialPortsBtn.Name = \ this.RefreshSerialPortsBtn.Size = new System.Drawing.Size(70, 23); this.RefreshSerialPortsBtn.TabIndex = 21;

this.RefreshSerialPortsBtn.Text = \刷新串口\

this.RefreshSerialPortsBtn.UseVisualStyleBackColor = true; this.RefreshSerialPortsBtn.Click +=

System.EventHandler(this.RefreshSerialPortsBtn_Click); //

// StopDisplayBtn //

this.StopDisplayBtn.Location = new System.Drawing.Point(88, 180); this.StopDisplayBtn.Name = \

this.StopDisplayBtn.Size = new System.Drawing.Size(70, 23);

new


C sharp串口程序源码(3).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:省青联十届二次常委会讲话(录音整理稿)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: