using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace 上位机demo
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Thread th = new Thread(Serial);
th.IsBackground = true;
th.Start();
Control.CheckForIllegalCrossThreadCalls = false;
System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;
string s = " ";
textBox1.Text = s;
}