• 大小: 0.43M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 串口  通信  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;
using System.Net.Sockets;


namespace WindowsApplication1
{
    public partial class Form1 : Form

    {
        public char[] bufchar;
        public Form1()
        {
            InitializeComponent();
            //textBox1.Text = “hello“;

        }

        private void button1_Click(object sender EventArgs e)
        {
            
            if (mycom.IsOpen)
            {

                mycom.Close();
                button1.Text=“打开串口“;   
            }
            else 
            {

                mycom.PortName = PortNameBox.Text;
                myco

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-20 18:26  .vs\
     目录           0  2017-12-20 18:26  .vs\WindowsApplication1\
     目录           0  2017-12-20 18:27  .vs\WindowsApplication1\v15\
     文件       32768  2017-12-20 18:39  .vs\WindowsApplication1\v15\.suo
     目录           0  2017-12-20 18:27  .vs\WindowsApplication1\v15\Server\
     目录           0  2017-12-20 18:39  .vs\WindowsApplication1\v15\Server\sqlite3\
     文件           0  2017-12-20 18:27  .vs\WindowsApplication1\v15\Server\sqlite3\db.lock
     文件      466944  2017-12-20 18:37  .vs\WindowsApplication1\v15\Server\sqlite3\storage.ide
     目录           0  2014-07-23 11:58  bin\
     目录           0  2017-12-20 18:38  bin\Debug\
     文件        5632  2005-12-08 14:51  bin\Debug\111.vshost.exe
     目录           0  2017-12-20 18:38  bin\Debug\app.publish\
     文件       19456  2017-12-20 18:38  bin\Debug\app.publish\mycommpro.exe
     文件        1628  2017-12-20 18:38  bin\Debug\mycommpro.application
     文件       19456  2017-12-20 18:38  bin\Debug\mycommpro.exe
     文件        3451  2017-12-20 18:38  bin\Debug\mycommpro.exe.manifest
     文件       28160  2017-12-20 18:38  bin\Debug\mycommpro.pdb
     目录           0  2014-07-23 11:58  bin\Debug\mycommpro.publish\
     文件        5273  2014-07-23 11:49  bin\Debug\mycommpro.publish\mycommpro.application
     目录           0  2014-07-23 11:58  bin\Debug\mycommpro.publish\mycommpro_1_0_0_2\
     文件        2238  2014-07-22 19:19  bin\Debug\mycommpro.publish\mycommpro_1_0_0_2\er.ico.deploy
     文件       24576  2014-07-23 11:49  bin\Debug\mycommpro.publish\mycommpro_1_0_0_2\mycommpro.exe.deploy
     文件        6326  2014-07-23 11:49  bin\Debug\mycommpro.publish\mycommpro_1_0_0_2\mycommpro.exe.manifest
     文件      423936  2014-07-23 11:49  bin\Debug\mycommpro.publish\setup.exe
     文件        1478  2014-07-24 12:37  bin\Debug\mycommpro.vshost.application
     文件        5632  2005-12-08 14:51  bin\Debug\mycommpro.vshost.exe
     文件        2585  2014-07-24 12:37  bin\Debug\mycommpro.vshost.exe.manifest
     目录           0  2014-07-23 11:58  bin\obj\
     目录           0  2014-07-23 11:58  bin\obj\Debug\
     目录           0  2014-07-23 11:58  bin\obj\Debug\TempPE\
     文件        4608  2014-07-22 10:34  bin\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
............此处省略42个文件信息

评论

共有 条评论