(https://img-
![软件接收的效果
blog.csdnimg.cn/20190425194928979.jpeg)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.IO ;
using System.IO.Ports;
using System.Text;
using System.Windows.Forms;
using System.Timers;
//using System.Reflection;
//using System.Resources;
//using System.Runtime;
using System.Threading;
using Microsoft.Win32;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
serialPort1.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);//port_DataReceived
System.Windows.Forms.Control.CheckForIlleg