基于C#串口读写程序 //程序开启,串口初始化 private void Form1_Load(object sender, System.EventArgs e) { mycom1.PortNum = iPort; mycom1.BaudRate = iRate; mycom1.ByteSize = bSize; mycom1.Parity = bParity; mycom1.StopBits = bStopBits;