c# xml操作类 比较齐全

using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts …… 阅读全文

串口开发辅助类

using System;using System.Collections.Generic;using System.Text;using System.IO.Ports;using System.Windows.Forms;namespace TestSerialPort{ /// /// 串口开发辅助类 /// public class Ser …… 阅读全文

C# WinForm获取当前路径汇总

Winform获取应用程序的当前路径的方法集合,具体如下,值得收藏//获取当前进程的完整路径,包含文件名(进程名)。string str = this.GetType().Assembly.Location;result: X:\xxx\xxx\xxx.exe (.exe文件所在的目录+.exe文件名)//获取新的Process 组件并将其与当前活动的进程关联的主模块的完整 …… 阅读全文

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.Thr …… 阅读全文

C#线程池多线程Socket通讯 服务器端和客户端示例

using System;using System.Net;using System.Net.Sockets;using System.Text;using System.Threading;namespace socket2016{ class Program { static void Main(string[] args) { …… 阅读全文

Winform退出运行后,删除运行目录(批处理方法)

/// /// Winform程序退出删除运行目录 FormClosed调用 /// private void DeletExeFile() { string fileName = @"C:\remove.bat"; StreamWriter bat = new StreamWrit …… 阅读全文