XML操作C#代码

using System; using System.Collections.Generic; using System.Text; using System.Xml; namespace Ne...
jopen 5年前       0      4K    

C#控制光驱开关的代码

光驱弹出与关闭 //using System.Runtime.InteropServices ; [DllImport("winmm.dll")] public static extern in...
jopen 5年前       0      1K    

C#加密算法汇总

方法一: //须添加对System.Web的引用 using System.Web.Security; ... /// <summary> /// SHA1加密字符串 /// </summary...
jopen 5年前       0      1K    

用C#实现软件自动更新思路

长期以来,广大程序员为到底是使用Client/Server,还是使用Browser/Server结构争论不休,在这些争论当中,C/S结构的程序可 维护性差,布置困难,升级不方便,维护成本高就是一...
jopen 5年前       0      7K    

用C#实现HTTP协议下的多线程文件传输

很多人都有过使用网络蚂蚁或网络快车软件下载互联网文件的经历,这些软件的使用可以大大加速互联网上文件的传输速度,减少文件传输的时间。这些软件为什么 有如此大的魔力呢?其主要原因是这些软件都采用了多...
jopen 5年前       0      10K    

C#操作Excel文件

Excel是微 软公司办公自动化套件中的一个软件,他主要是用来处理电子表格。Excel以其功能强大,界面友好等受到了许多用户的欢迎。在设计应用系 统时,对于不同的用户,他们对于打印的需求是不一样...
jopen 5年前       0      2K    

C#如何取硬件标志的代码

using System; using System.Runtime.InteropServices; using System.Management; namespace Hardware {...
jopen 5年前       0      1K    

用C#编写获取远程IP,MAC的方法

如果要想获得远程的地址,需要用sendarp这个函数来实现。具体的代码如下: [DllImport("Iphlpapi.dll")] private static unsafe extern i...
jopen 5年前       0      1K    

提取网页中的超链接C#代码

using System; using System.Xml; using System.Text; using System.Net; using System.IO; using Syste...
jopen 5年前       0      1K    

FTP上传类FTP上传C#类

using System; using System.Collections.Generic; using System.Text; using System.Net; using System...
jopen 5年前       0      3K    

asp.Net 一些常用的方法和类

生成验证码: using System; using System.Data; using System.Configuration; using System.Collections; usi...
jopen 5年前       0      1K    

asp.net 读取word 文档的方法

//第一种方法: Response.ClearContent(); Response.ClearHeaders(); Response.ContentType = "Application/ms...
jopen 5年前       0      1K    

C# 5.0将带来的五大新特性

第一:绑定运算符,:=: 这个只是简化了数据绑定,跟ASP.NET MVC3不断改进一样,其实不是什么亮点改进。 comboBox1.Text :=: textBox1.Text; //将文本框...
jopen 5年前       0      1K    

C#获取当前程序运行路径的方法集合

//获取当前进程的完整路径,包含文件名(进程名)。 string str = this.GetType().Assembly.Location; result: X:\xxx\xxx\xxx.e...
jopen 5年前       0      1K    

.Net开发中常用的一些数据库链接字符串

常用的数据库链接串 <!-- Access 2007: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:/myFolder/myAccess200...
jopen 5年前       0      1K    

如何让程序能够开机自动运行的C#代码

//此方法把启动项加载到注册表中 //获得应用程序路径 string strAssName = Application.StartupPath + @"/" + Application.Prod...
jopen 5年前       0      1K    

用C# 代码创建window服务

using System; using System.Threading; using System.ServiceProcess; using System.Collections; usin...
jopen 5年前       0      2K