摘要:
C# 字符串操作类 view source print?0001using System; 0002using System.Collections.Generic; 0003using System.Text; 0004using System.Collections; 0005using System.Text.RegularExpressions; 0006using System.Secu... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Text;namespace 星空文件高手{#region Class IdentifyEncoding...../// <summary>/// 检测字符编码的类/// <seealso cref="System.IO.Stream"/>/// <s... 阅读全文
摘要:
c#写的串口通讯 窗口数据发送和接受的类 新建 PortControl 程序代码 using System; using System.IO.Ports; using System.Windows.Forms; namespace SPC { /// <summary> /// 串口控制 /// </summary> public class PortControl... 阅读全文
摘要:
在网上查了很多关于串口的知识。后来才发现原来c#里含有对串口开发的控件,害的我白忙活了半天。看来学习方法很重要....首先在窗体添加一个serialPort1控件。没有的去com组建里找出来。 serialPort1.PortName;// 设置串口名称如“COM1” serialPort1.BaudRate;//设置串口波特率 serialPort1.Parity;//奇... 阅读全文