資源簡介
c#串口實例
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.IO.Ports;
using?System.Threading;
using?System.Collections;
using?System.IO;
namespace?COM_A
{
????public?partial?class?Form1?:?Form
????{
????????public?byte[]?myBy;//傳遞串口接收到的數據
????????public?int?myByLenth?=?0;//串口接收到的數據長度
????????public?string?myStr;//串口接收的字符串
????????public?bool?receiveDtatFlag?=?false;
????????public?int?send_count?=?0;
????????public?Form1()
????????{
????????????InitializeComponent();
????????????//this.ControlBox?=?false;//最小化最大化關閉按鈕處理
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)//頁面加載
????????{
????????????#reg
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????158863??2016-06-17?15:29??4_COM_ok\13d.ico
?????文件?????150284??2016-09-02?16:02??4_COM_ok\c7.ico
?????文件???????7814??2017-02-26?19:26??4_COM_ok\COM_A\bin\Debug\1.jpg
?????文件?????262395??2017-02-26?19:28??4_COM_ok\COM_A\bin\Debug\2.jpg
?????文件?????532992??2019-04-29?17:17??4_COM_ok\COM_A\bin\Debug\COM_A.exe
?????文件????????549??2018-05-24?13:12??4_COM_ok\COM_A\bin\Debug\COM_A.exe.Config
?????文件????????510??2018-03-26?16:29??4_COM_ok\COM_A\bin\Debug\COM_A.exe_11.Config
?????文件?????114176??2019-04-29?17:17??4_COM_ok\COM_A\bin\Debug\COM_A.pdb
?????文件??????11600??2019-04-29?17:17??4_COM_ok\COM_A\bin\Debug\COM_A.vshost.exe
?????文件????????549??2018-05-24?13:12??4_COM_ok\COM_A\bin\Debug\COM_A.vshost.exe.Config
?????文件????????490??2015-11-13?10:24??4_COM_ok\COM_A\bin\Debug\COM_A.vshost.exe.manifest
????..A.SHR?????????8??2018-04-02?08:41??4_COM_ok\COM_A\bin\Debug\Desktop_1.ini
????..A.SHR?????????8??2018-04-02?08:41??4_COM_ok\COM_A\bin\Debug\Desktop_2.ini
?????文件??????21065??2017-02-27?13:22??4_COM_ok\COM_A\bin\Debug\green.png
?????文件??????17187??2017-02-27?13:22??4_COM_ok\COM_A\bin\Debug\red.png
????..A.SHR?????????8??2018-04-02?08:41??4_COM_ok\COM_A\bin\Desktop_1.ini
????..A.SHR?????????8??2018-04-02?08:41??4_COM_ok\COM_A\bin\Desktop_2.ini
?????文件???????7814??2017-02-26?19:26??4_COM_ok\COM_A\bin\Release\1.jpg
?????文件?????262395??2017-02-26?19:28??4_COM_ok\COM_A\bin\Release\2.jpg
?????文件?????530944??2019-04-29?17:17??4_COM_ok\COM_A\bin\Release\COM_A.exe
?????文件????????517??2018-04-17?13:11??4_COM_ok\COM_A\bin\Release\COM_A.exe.Config
?????文件????????460??2018-03-27?16:15??4_COM_ok\COM_A\bin\Release\COM_A.exe_11.Config
?????文件??????99840??2019-04-29?17:17??4_COM_ok\COM_A\bin\Release\COM_A.pdb
?????文件??????11600??2019-04-29?17:17??4_COM_ok\COM_A\bin\Release\COM_A.vshost.exe
?????文件????????517??2018-04-17?13:11??4_COM_ok\COM_A\bin\Release\COM_A.vshost.exe.Config
?????文件????????490??2015-11-13?10:24??4_COM_ok\COM_A\bin\Release\COM_A.vshost.exe.manifest
????..A.SHR?????????8??2018-04-02?08:41??4_COM_ok\COM_A\bin\Release\Desktop_1.ini
????..A.SHR?????????8??2018-04-02?08:41??4_COM_ok\COM_A\bin\Release\Desktop_2.ini
?????文件??????21065??2017-02-27?13:22??4_COM_ok\COM_A\bin\Release\green.png
?????文件??????17187??2017-02-27?13:22??4_COM_ok\COM_A\bin\Release\red.png
............此處省略77個文件信息
- 上一篇:C#獲取電腦SN號
- 下一篇:c# 仿QQ UI界面(純原生form)
評論
共有 條評論