C# 读写文件window form操作代码 ///////////创建文件和读取文件的值 #region 判断文件是否存在,不存在则创建,否则读取值显示到窗体 public Fo…
实现本网站图片保护功能 类: using System; using System.Collections.Generic; using System.Linq; us…
public class ImageCut { /// <summary> /// 剪裁 -- 用GDI+ /// </summary> /// <p…
先到网上下载PostgreSql.Data.PostgreSqlClient.dll 然后添加引用,使用命名空间 using PostgreSql.Data.PostgreSqlC…
string s=""; System.Net.IPAddress[] addressList = Dns.GetHostByName(Dns.GetHostN…
using System; using System.Collections.Generic; using System.ComponentModel; using System.…
C#获取本机IP地址和Mac地址的代码 查找了几个方法,经过调试修改,下面这个方法能很好的获取到本地的IP和MAC地址。可以用于这方面的功能实现。主要是要添加System.Mana…
这个C#类可以生成各种形式的缩略图,可以自动保持图片比例缩略,可以根据百分比获得图片尺寸等 using System; using System.Collections.Gener…
c# 使用AForge.NET操作摄像头操作代码 AForge.NET是一个专门为开发者和研究者基于C#框架设计的,这个框架提供了不同的类库和关于类库的资源,还有很多应用程序例子,…
namespace 修复网络连接 { public partial class form1 : Form { DateTime ds; int timescan; System.D…
首先到网上下载MySql.Data.MySqlClient.dll,然后添加引用到项目 using MySql.Data.MySqlClient; string connectSt…
public void ungzip(string path, string decomPath, bool overwrite) { //for overwriting purp…