|

楼主 |
发表于 2014-5-27 10:27:23
|
显示全部楼层
if (this.comboBox2.Text == "前 扩展端口置位" || this.comboBox2.Text == "后 扩展端口置位" || this.comboBox2.Text == "双向扩展端口置位" || this.comboBox2.Text == "前扩展端口复位" || this.comboBox2.Text == "后扩展端口复位" || this.comboBox2.Text == "双向扩展端口复位")
{
textBox3.Enabled = true;
string convertdata3 = data3.Substring(2, 2);
byte[] buffer3 = new byte[1];
buffer3[0] = Convert.ToByte(convertdata3, 16);
serialPort1.Write(buffer3, 0, 1);
} 不行啊 如果你看我下拉框内容前端口复位 下面的textBOx3没有使能啊 怎么回事啊?求救啊站长 |
|