• 大小: 90KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-11
  • 语言: C#
  • 标签: 串口  c  C#串口  串口C#  c#  

资源简介

C# 串口调试 C# 串口调试 C# 串口调试 实现收发

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace lily的串口
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            if (serialPort1.IsOpen== false)
            {
                try
                {
                    setport();//设置串口
                    serialPort1.Open();//打开串口
                    button1.BackColor = System.Drawing.Color.GreenYellow;
                }
                catch (UnauthorizedAccessException)
                {
                    button1.BackColor = System.D

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      33914  2008-09-27 10:42  lily的串口\lily的串口\flamingo.ico

     文件       5558  2008-09-27 15:01  lily的串口\lily的串口\Form1.cs

     文件      29386  2008-09-27 14:59  lily的串口\lily的串口\Form1.Designer.cs

     文件      57362  2008-09-27 14:59  lily的串口\lily的串口\Form1.resx

     文件       3349  2008-09-27 10:54  lily的串口\lily的串口\lily的串口.csproj

     文件        310  2008-09-27 15:01  lily的串口\lily的串口\obj\lily的串口.csproj.FileList.txt

     文件        766  2008-09-27 10:54  lily的串口\lily的串口\PORT.ICO

     文件        472  2008-09-25 11:07  lily的串口\lily的串口\Program.cs

     文件       1206  2008-09-25 11:07  lily的串口\lily的串口\Properties\AssemblyInfo.cs

     文件       2880  2008-09-25 11:07  lily的串口\lily的串口\Properties\Resources.Designer.cs

     文件       5612  2008-09-25 11:07  lily的串口\lily的串口\Properties\Resources.resx

     文件       1096  2008-09-25 11:07  lily的串口\lily的串口\Properties\Settings.Designer.cs

     文件        249  2008-09-25 11:07  lily的串口\lily的串口\Properties\Settings.settings

     文件      33914  2008-09-27 10:40  lily的串口\lily的串口\火烈鸟.ico

     文件        928  2008-09-25 11:08  lily的串口\lily的串口.sln

    ..A..H.     14848  2008-09-27 15:01  lily的串口\lily的串口.suo

     目录          0  2008-09-26 14:47  lily的串口\lily的串口\bin\Debug

     目录          0  2008-09-27 15:01  lily的串口\lily的串口\obj\Debug

     目录          0  2008-09-25 11:07  lily的串口\lily的串口\bin

     目录          0  2008-09-26 14:47  lily的串口\lily的串口\obj

     目录          0  2008-09-25 11:07  lily的串口\lily的串口\Properties

     目录          0  2008-09-27 15:01  lily的串口\lily的串口

     目录          0  2008-09-25 11:08  lily的串口

----------- ---------  ---------- -----  ----

               192068                    24


评论

共有 条评论