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

资源简介

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.Threading;
using Microsoft.Win32;

namespace TEXTCOM
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private SerialPort Sp = new SerialPort();
        public delegate void HandleInterfaceUpdataDelegate(string text); //委托,此为重点 
        private HandleInterfaceUpdataDelegate interfaceUpdataHandle;

        private bool qiii = false;


     

     


        public void Sp_DataReceived(object sender System.IO.Ports.SerialDataReceivedEventArgs e)
        {
            string strTem

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

     文件       7689  2009-05-31 10:57  C#读取电子秤重量-winform\TEXTCOM\Backup\TEXTCOM\Form1.cs

     文件       5923  2009-05-31 10:50  C#读取电子秤重量-winform\TEXTCOM\Backup\TEXTCOM\Form1.Designer.cs

     文件       5814  2009-05-31 10:50  C#读取电子秤重量-winform\TEXTCOM\Backup\TEXTCOM\Form1.resx

     文件        466  2009-05-26 13:49  C#读取电子秤重量-winform\TEXTCOM\Backup\TEXTCOM\Program.cs

     文件       1162  2009-05-26 13:49  C#读取电子秤重量-winform\TEXTCOM\Backup\TEXTCOM\Properties\AssemblyInfo.cs

     文件       2868  2009-05-26 13:49  C#读取电子秤重量-winform\TEXTCOM\Backup\TEXTCOM\Properties\Resources.Designer.cs

     文件       5612  2009-05-26 13:49  C#读取电子秤重量-winform\TEXTCOM\Backup\TEXTCOM\Properties\Resources.resx

     文件       1090  2009-05-26 13:49  C#读取电子秤重量-winform\TEXTCOM\Backup\TEXTCOM\Properties\Settings.Designer.cs

     文件        249  2009-05-26 13:49  C#读取电子秤重量-winform\TEXTCOM\Backup\TEXTCOM\Properties\Settings.settings

     文件       3221  2009-05-26 14:03  C#读取电子秤重量-winform\TEXTCOM\Backup\TEXTCOM\TEXTCOM.csproj

     文件        910  2009-05-26 13:49  C#读取电子秤重量-winform\TEXTCOM\Backup\TEXTCOM.sln

    ..A..H.     21504  2009-06-04 10:08  C#读取电子秤重量-winform\TEXTCOM\Backup\TEXTCOM.v11.suo

     文件      14848  2015-04-27 21:20  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\bin\Debug\TEXTCOM.exe

     文件      46592  2015-04-27 21:20  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\bin\Debug\TEXTCOM.pdb

     文件      21464  2015-04-27 21:24  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\bin\Debug\TEXTCOM.vshost.exe

     文件        490  2009-08-31 00:40  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\bin\Debug\TEXTCOM.vshost.exe.manifest

     文件       7702  2015-04-27 21:18  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\Form1.cs

     文件       5923  2009-05-31 10:50  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\Form1.Designer.cs

     文件       5814  2015-04-27 21:18  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\Form1.resx

     文件       2535  2015-04-27 21:20  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\Form2.cs

     文件       2731  2015-04-27 21:20  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\Form2.Designer.cs

     文件       6017  2015-04-27 21:20  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\Form2.resx

     文件       1229  2015-04-27 20:15  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6067  2015-04-27 21:31  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       4608  2015-04-25 11:21  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件       1650  2015-04-27 21:24  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\obj\Debug\TEXTCOM.csproj.FileListAbsolute.txt

     文件        905  2015-04-27 21:20  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\obj\Debug\TEXTCOM.csproj.GenerateResource.Cache

     文件       1339  2015-04-27 20:37  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\obj\Debug\TEXTCOM.csprojResolveAssemblyReference.cache

     文件      14848  2015-04-27 21:20  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\obj\Debug\TEXTCOM.exe

     文件        180  2015-04-27 21:18  C#读取电子秤重量-winform\TEXTCOM\TEXTCOM\obj\Debug\TEXTCOM.Form1.resources

............此处省略33个文件信息

评论

共有 条评论