- 博客(15)
- 资源 (1)
- 收藏
- 关注
原创 在.NET中利用XMLHTTP下载文件
document.title="在.NET中利用XMLHTTP下载文件 - "+document.title利用XMLHTTP下载文件,和以前的方法一样,先添加引用-COM-Microsoft Xml 3.0,然后在代码开始处写:using MSXML2;下面就是主要的代码:private void Page_Load(object sender, System.EventArgs
2005-12-01 11:51:00 714
原创 ftp源代码
using System;using System.Net;using System.IO;using System.Text;using System.Net.Sockets;namespace FtpLib{ public class FTPFactory { private string remoteHost,remotePath,remoteUser,remotePass,mes;
2005-12-01 11:47:00 1284
原创 学习游戏开发经典网站
document.title="学习游戏开发经典网站 - "+document.title华语游戏开发资源网http://www.gameres.com/游戏开发网http://www.gamedev.net/中国游戏开发者http://www.ChinaGameDev.net中国游戏开发技术资讯网http://www.gamedevelop.net游戏制作联盟http://gd.91.
2005-12-01 11:45:00 1272
原创 一些值得收藏的网址
名称:快速入门地址:http://chs.gotdotnet.com/quickstart/描述:本站点是微软.NET技术的快速入门网站,我们不必再安装.NET Framework中的快速入门示例程序,直接在网上查看此示例即看。****************************************************名称:微软官方.NET指导站点地址:http://www.gotdo
2005-12-01 11:44:00 1145
原创 用imgscan.ocx来扫描图像(转)
可能有的朋友做oa软件时可能要用到扫描图像的功能,在这里我简要说一下imgscan.ocx的用法。Imgscan.ocx在winnt的安装目录下就有,它支持Twain标准,一般扫描仪都适用。ocx控件我们在c#中也是可以调用的。属性://是否在扫描前显示设置界面ShowSetupBeforeScan//扫描到哪里(传真、文件目录等)ScanTo//扫描到文件夹的位置Image例如:axImgSca
2005-12-01 11:42:00 2836
原创 Visaul C#托盘程序制作心得
首先,当然要引入NotifyIcon控件。private System.Windows.Forms.NotifyIcon notifyIconServer;this.notifyIconServer = new System.Windows.Forms.NotifyIcon(this.components);接下来设置控件的各项属性: // // notifyIconServer //
2005-12-01 11:42:00 858
原创 C#编码规范
一、类型级单位的命名1、类。以Class声明的类,都必须以名词或名词短语命名,体现类的作用。如:Class Indicator当类是一个特性(Attribute)时,以Attribute结尾,当类是一个异常(Exception)时,以Exception结尾:Class ColorSetExceptionClass CauseExceptionAttribute当类只需有一个对象实例(全局对象,比如
2005-12-01 11:41:00 585
原创 使用c#创建windows本地用户帐号
Using the Windows net command, it’s easy to create local Windows User Accounts. The syntax for the net command is:net user [username] [password] /ADDThe following C# function takes in three parameters
2005-12-01 11:39:00 933
原创 HMAC-MD5的C#实现
由于工作的需要,编写了一个C#版本的HMAC-MD5加密算法。/** * * hmac_md5口令加密算法 * */ public byte[] hmac_md5(string timespan, string password) { byte[] b_tmp; byte[] b_tmp1; if (password == null) { return nul
2005-12-01 11:35:00 2388 1
原创 一个非常实用的Base64类(转载)
最近在学习c#网络编程,我把一些在网络上找到的相关好文,贴到这里,以便学习,分享。------------------------------------------using System; namespace SClassLibrary.SEncoding{/// /// 有关base64编码算法的相关操作/// 作者:尹曙光/// public class SBase64{public S
2005-12-01 11:34:00 762
原创 C# 实现Base64的编码/解码(转载)
编码类using System;namespace WebApplication1{ /// /// Base64Encoder 的摘要说明 /// 说明:Base编码类 /// 写作者:Quentin /// public class Base64Encoder { byte[] source; int length,length2; int blockCount; int padd
2005-12-01 11:33:00 842
原创 在WinForm中通过HTTP协议向服务器端上传文件(转载)
相信用ASP.NET写一个上传文件的网页,大家都会写,但是有没有人想过通过在WinForm中通过HTTP协议上传文件呢?有些人说要向服务器端上传文件,用FTP协议不是很简单吗?效率又高,为什么还要使用HTTP协议那么麻烦呢?这里面有几个原因:(1)FTP服务器的部署相对麻烦,还要设置权限,权限设置不对,还会惹来一系列的安全问题。(2)如果双方都还有防火墙,又不想开发FTP相关的一些端口时,HTTP
2005-12-01 11:30:00 1115
原创 (总结).NET中各种数据库连接代码大全
SQL Server ODBC Standard Security: "Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;" Trusted connection: "Driver={SQL Server};Server=Aron1;Database=pubs;Trusted_Connection=yes;" Prom
2005-12-01 11:26:00 1315 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人