自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 资源 (9)
  • 收藏
  • 关注

原创 C# 基于iTextSharp封装的PDF操作类

using System.IO;using iTextSharp.text;using iTextSharp.text.pdf;namespace DotNet.Utilities{ /// /// PDF文档操作类 /// //------------------调用-------------------------- //PDFOperation pdf = n

2017-03-26 22:30:57 1727

原创 C#图片缩小剪切方法

/// /// 缩小裁剪图片/// /// 要缩小裁剪图片宽度/// 要缩小裁剪图片长度/// 要处理图片路径/// 处理完毕图片路径public void ImgReduceCutOut(int int_Width, int int_Height, string input_ImgUrl, string out_ImgUrl) { // ===上传标准图大小===

2017-03-25 14:09:34 371

原创 C#图片处理类ImageHelper

using System;using System.Collections;using System.IO;using System.Drawing;using System.Drawing.Imaging;using System.Drawing.Drawing2D; namespace myImage.Utilities{ public class ImageClass

2017-03-25 13:36:28 695

原创 C# 图片加水印实现类

using System;using System.Drawing;using System.Drawing.Imaging;using System.Drawing.Drawing2D;using System.IO;namespace WaterImage{ /// /// 图片位置 /// public enum ImagePosition

2017-03-20 09:19:26 484

原创 C# 密码加密解密操作相关类

using System;using System.IO;using System.Text;using System.Globalization;using System.Collections.Generic;using System.Security.Cryptography;namespace Utils{ /// /// 密码加密解密操作相关类

2017-03-17 14:37:12 1843

原创 C# 判断软件是否是管理员权限运行

using System.Security.Principal;public static bool IsAdministrator() { WindowsIdentity current = WindowsIdentity.GetCurrent(); WindowsPrincipal windowsPrincipal = new

2017-03-15 14:45:22 3335

原创 C#mysql操作类

//下载.NET的mysql sdk,然后引用命名空间using MySql.Data.MySqlClientusing System;using System.Collections;using System.Collections.Specialized;using System.Data;using MySql.Data.MySqlClient;using System.Conf

2017-03-15 14:41:18 7558

原创 C#xml操作帮助类

using System.Xml;using System.Data; namespace myhelper{ /// /// Xml的操作公共类 /// public class XmlHelper { #region 字段定义 /// /// XML文件的物理路径 //

2017-03-15 14:39:52 2333

原创 C# DES加密/解密类

using System;using System.Security.Cryptography;  using System.Text;namespace mydeshelper{        ///         /// DES加密/解密类。        ///         public class DESEncrypt        {

2017-03-15 14:36:13 353

原创 C#SQLite操作类

//引用.NETSQLite SDK,命名空间是System.Data.SQLite;using System;using System.Collections;using System.Collections.Specialized;using System.Data;using System.Configuration;using System.Data.SQLite;name

2017-03-15 14:33:39 7190

原创 C# 数学表达式处理计算帮助类

using System; namespace mymathhelper{ /// /// EnumFormula /// public enum EnumFormula { Add,//加号 Dec,//减号 Mul,//乘号 Div,//除号 Sin,//正玄

2017-03-15 14:30:51 2222 2

原创 用互斥量或进程检查来实现阻止程序多开

//互斥量private void Form1_Load(object sender, EventArgs e){ bool Exist;//定义一个bool变量,用来表示是否已经运行 //创建Mutex互斥对象 System.Threading.Mutex newMutex = new System.Threading.Mutex(true, "仅一次", out Ex

2017-03-15 14:28:46 1412

原创 C# 网络爬虫类

/// /// 类说明:HttpHelper类,用来实现Http访问,Post或者Get方式的,直接访问,带Cookie的,带证书的等方式,可以设置代理/// /// /// using System;using System.Collections.Generic;using System.Text;using System.Net;using System.IO;using

2017-03-15 14:17:01 2078

原创 C#SQLServer数据库操作类

using System;using System.Collections.Generic;using System.Text;using System.Configuration;using System.Data;using System.Data.SqlClient;using System.Reflection; namespace {namespace}.DBUtilit

2017-03-15 14:12:49 3138

原创 C# Oracle数据库操作类OracleHelper

using System;using System.Configuration;using System.Data;using System.Data.OracleClient;using System.Collections;using System.Collections.Generic; namespace Maticsoft.DBUtility{ ///

2017-03-15 14:08:26 13413 1

原创 C# Excel操作类ExcelHelper

/// /// C#与Excel交互类 /// public class myExcelHelper { #region 导出到Excel #region ExportExcelForDataTable /// /// 从DataTable导出Excel,指定列别名,指定要排除的列

2017-03-15 14:05:07 2777

原创 C# winform窗体动画实现

这里主要是用到win32的一个方法 AnimateWindow(),详细介绍可以搜索AnimateWindow。代码:using System;using System.Collections.Generic;using System.Runtime.InteropServices;using System.Text;namespace AnimationForm{ p

2017-03-15 13:18:02 7022

原创 C# GDI进行Button重绘

public partial class ButtonEx : Button{ public ButtonEx() { //首先开启双缓冲,防止闪烁 //双缓冲的一大堆设置 具体参数含义参照msdn的ControlStyles枚举值 this.SetStyle(ControlStyles.UserPaint, true);

2017-03-14 21:56:40 3911 1

原创 Image操作类

using System;using System.Collections;using System.IO;using System.Drawing;using System.Drawing.Imaging;using System.Drawing.Drawing2D; namespace myimagehelper{ public class ImageClass

2017-03-14 21:49:15 579

原创 九宫切图实现

public static void RenderBackground(Graphics g, Image img, Rectangle rect) { //填充四个角 g.DrawImage(img, new Rectangle(rect.X, rect.Y, 5, 5), new Rectangle(0, 0, 5, 5), GraphicsUnit.Pixe

2017-03-14 21:46:23 1850

原创 普通控件截图 与 Panel跨越滚动条截图

/// /// 传入控件取得控件的图像/// /// 控件/// Bitmap控件截图public static Bitmap GetControl(Control cl) { Bitmap _BitMap = null; //判断如果是Panel,则调用Panel滚动截图的截图方法 if (cl is Panel) { Panel c = (Pa

2017-03-14 21:41:30 1122

原创 文件及文件夹操作类

一个完整强大的文件和文件夹操作类,基于System.IO下面的Directory和File扩展出了我们经常要用到的但是系统不自带的方法例如:获取一个目录下面的所有文件。支持遍历子目录、验证目录是否为空。移动复制文件、批量删除文件以及对文件的写入、修改、追加对目录的清空等多个方法。using System;using System.Text;using Syste

2017-03-14 09:53:40 353

原创 网络操作相关类

using System;using System.Text;using System.Net.Sockets;using System.Net.Mail;using System.Net; namespace mynethelper{ /// /// 网络操作相关的类 /// public class NetHelper {

2017-03-14 09:25:25 234

原创 串口通讯类

PC与外设通讯、与下位机经常用到串口通讯,为了高效方便封装一个好的串口操作类是必要的啦,以下是代码。//Commhelper.csusing System;using System.Runtime.InteropServices;namespace Comm{ public class myCom { #region WINAPI常量 /

2017-03-14 09:14:56 353

原创 C#检测本机是否联网

检测联网如果还用ping baidu效率太低,也不可靠,于是还有下面的比较好的方法using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices; namespace LocalApp.ConsoleApp.C

2017-03-14 09:09:00 971

基于MFC的PNG图片解码器

这是国外codeproject大神写的,亲测比较好用 不用GDI+这些繁琐庞杂的库,也不用libPNG,实现超简单。

2016-08-19

在MFC中嵌入cef浏览器demo

code project大神写的在MFC中嵌入cef浏览器demo 具有较大参考 价值

2016-07-26

tcp多进程文件传输服务器

linux c实现基于tcp多进程并发文件传输,传输目录为执行文件当前目录

2013-07-15

TFTP客户端 文件上传/下载实现

基于linux c udp网络编程实现的客户端 TFTP文件上传/下载,可以与官方的tftp服务器实现良好传输

2013-07-15

Linux下curses库开发篮球积分系统

Linux下curses库开发篮球积分系统,具有在篮球积分,计时功能,图形界面开发。

2013-07-15

linux 系统命令 ls -l命令的实现

对linux 系统命令 ls -l命令的实现,通过gcc编译,查看目录下文件基本信息。

2013-07-15

smtp的邮件发送接收客户端和服务器 实现

linux系统下实现smtp简单邮件传输协议的邮件发送接收客户端和服务器

2013-07-15

多线程下载服务器与客户端

linux c网络编程 实现多线程下载服务器与客户端,可以实现类似迅雷的多个线程分块下载同一个文件/多个线程下载多个文件,大大增加下载速度

2013-07-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除