设为首页 加入收藏

TOP

C#结合串口通信类实现串口通信源代码(四)
2014-11-24 13:12:24 来源: 作者: 【 】 浏览:3
Tags:结合 串口 通信 实现 源代码
this.label3.Text = "波特率:";
//
// t_rate
//
this.t_rate.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.t_rate.Location = new System.Drawing.Point(80, 50);
this.t_rate.Name = "t_rate";
this.t_rate.Size = new System.Drawing.Size(80, 21);
this.t_rate.TabIndex = 2;
this.t_rate.Text = "9600";
//
// label4
//
this.label4.Location = new System.Drawing.Point(16, 92);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 16);
this.label4.TabIndex = 1;
this.label4.Text = "数据位:";
//
// t_bytesize
//
this.t_bytesize.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.t_bytesize.Location = new System.Drawing.Point(80, 84);
this.t_bytesize.Name = "t_bytesize";
this.t_bytesize.Size = new System.Drawing.Size(80, 21);
this.t_bytesize.TabIndex = 2;
this.t_bytesize.Text = "8";
//
// label5
//
this.label5.Location = new System.Drawing.Point(16, 126);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(56, 16);
this.label5.TabIndex = 1;
this.label5.Text = "停止位:";
//
// t_stopbyte
//
this.t_stopbyte.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.t_stopbyte.Location = new System.Drawing.Point(80, 118);
this.t_stopbyte.Name = "t_stopbyte";
this.t_stopbyte.Size = new System.Drawing.Size(80, 21);
this.t_stopbyte.TabIndex = 2;
this.t_stopbyte.Text = "1";
//
// label6
//
this.label6.Location = new System.Drawing.Point(16, 160);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(56, 16);
this.label6.TabIndex = 1;
this.label6.Text = "校验位:";
//
// t_parity
//
this.t_parity.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.t_parity.Enabled = false;
this.t_parity.Location = new System.Drawing.Point(80, 152);
this.t_parity.Name = "t_parity";
this.t_parity.Size = new System.Drawing.Size(80, 21);
this.t_parity.TabIndex = 2;
this.t_parity.Text = "0";
//
// button3
//
this.button3.Location = new System.Drawing.Point(472, 272);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(40, 23);
this.button3.TabIndex = 3;
this.button3.Text = "清空";
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button4.Location = new System.Drawing.Point(432, 312);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(72, 23);
this.button4.TabIndex = 6;
this.button4.Text = "初始化";
//
// textBox8
//
this.textBox8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox8.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(128)), ((System.Byte)(0)));
this.textBox8.Location = new System.Drawing.Point(288, 312);
this.textBox8.Name = "textBox8";
this.textBox8.Size = new System.Drawing.Size(136, 21);
this.textBox8.TabIndex = 7;
this.textBox8.Text = "";
//
// label7
//
this.label7.Location = new System.Drawing.Point(200, 320);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(100, 16);
this.label7.TabIndex = 8;
this.label7.Text = "设置本机地址:";
//
// button5
//
this.button5.
首页 上一页 1 2 3 4 5 下一页 尾页 4/5/5
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇C#串口通信编程类(修改版) 下一篇Java里关于日期Date的相关代码实现

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: