C#
precipitant
简单的人
展开
-
C#SoapFormatter序列化一例:将图片读写入xml文件,并能根据需要在PictureBox中按比例缩小显示
using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Runtime.Serialization.Formatters.Binary;using System.Ru原创 2004-10-20 16:02:00 · 2724 阅读 · 1 评论 -
C#中关于集合的一个小例子
这是一个在c#中使用集合的一个小小的例子,里面涉及到了 Hashtable,ArrayList,集合的排序,枚举器,集合的遍历,成员的查找。 例子如下:Form1代码: public partial class Form1 : Form ...{ public Form1() ...{ InitializeComp原创 2007-07-15 13:06:00 · 2010 阅读 · 0 评论 -
C#中导出数据到EXCEL的简单例子
这几天没事在网上闲逛的时候看到类似的代码,花了点时间测试了一下。觉得不错。简单的整理一下。 在项目中需要引用:COM:Microsoft Office 11.0 Object Library COM:Microsoft Excel 11.0 Object Library简单封装的代码类:using原创 2007-08-04 17:06:00 · 2795 阅读 · 1 评论 -
VC++.net 的第一个简单例子
vc++.net 基本上保留了vc++的东西,但是在细节上也有了些差别,和c#的差别是非常大。下面是摸索的一个小小例子的一段代码。从代码可以看出,声明所有引用类型的对象的时候,要有一个^比如:System::String^ strA;private: System::Void button1_Click(System::Object^ sender, System::EventA原创 2007-10-11 09:34:00 · 1368 阅读 · 0 评论 -
定时器:.NET框架类库中定时器类的比较
原著:Alex Calvo翻译:lxhui原文出处:MSDN Magazine February 2004(Timer...)转自:http://www.vckbase.com/document/viewdoc/?id=1014原代码下载: TimersinNET.exe (126KB)本文章假定你熟悉C# 概要 不论在客户端应用程序还是服务器组件(包括窗口服务)定时器通常扮演一个重转载 2007-10-16 14:09:00 · 947 阅读 · 0 评论 -
C#中用正则获取网页链接
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Text.RegularExpressions;原创 2007-10-12 11:49:00 · 3260 阅读 · 12 评论