学习文档
apexchu
这个作者很懒,什么都没留下…
展开
-
如何得到硬盘序列号?[非原创,版权归作者所有,本人学习收藏]
using System;using System.Runtime.InteropServices;using System.Text;namespace Sunmast.Hardware{ [Serializable] public struct HardDiskInfo { /// /// 型号 /// public string ModuleNumber; /// //原创 2004-12-03 21:50:00 · 1191 阅读 · 0 评论 -
关于Socket的学习代码[部份代码来自MSDN文档:-)]
using System;using System.Text;using System.IO;using System.Net;using System.Net.Sockets;public class Sample{ public static string DoSocketGet(string server) { //Set up variables and String原创 2004-12-06 16:59:00 · 868 阅读 · 0 评论 -
[录摘]在.NET环境写编写和注册Windws Service
/*====================================================================虽然简单,但是我们很少写基于这样的应用,我偶尔看到这篇文章,就顺手摘录下来了通过.NET平台编写和发布简单的Windows Service是一件很方便的事情.新建一个(VB.NET/C#)项目,选择Windows Service应用..然后在OnStart类里原创 2004-12-09 08:32:00 · 700 阅读 · 0 评论 -
摘录几个有用的API在C#中的应用
熟悉windows的用户对操作系统的关机程序一定了解,您是不是觉得它的功能不是很多。许多软件都有自动关机功能,比如一些下载软件,这一功能能让您半夜踏踏实实地睡个好觉,而电脑却能按照您事先的设定自动关闭 , 您在使用电脑听音乐、看电影、或是下载等一些自动功能的时候,是不是经常为忘记关机而心痛不已。现在我们用visual C#来编写一个多功能的关机程序。该程序具有:定时关机、倒计时关机、关机提醒、原创 2004-12-09 11:10:00 · 1122 阅读 · 0 评论 -
C#中调用PING
using System;using System.Diagnostics;namespace ZZ{ class ZZConsole { [STAThread] static void Main(string[] args) { string ip = "192.192.132.229";原创 2004-12-15 12:02:00 · 1069 阅读 · 3 评论 -
IN...
using System;using System.Runtime.InteropServices;using System.Text;using System.Collections;using System.Diagnostics;using Microsoft.Win32;using System.Windows.Forms ;namespace Sample.FormatYH{ #r原创 2004-12-15 17:28:00 · 272 阅读 · 0 评论 -
在自定义控件中加入属性和事件[学习文档,非个人作品]
我们先来看看IssueVision中一个用户控件PaneCaption在可视化设计器中的属性窗口. 再看一下在另一个用户控件StaffPane中使用它时的属性窗口:大家会发现它多出来很多个属性,这些属性是原来继承控件中没有的属性,如:InactiveTextColor,InactiveTextColor等等.它们是如何实现的呢?我们就来看一下这个用户控件的代码PaneCapti原创 2004-12-30 10:06:00 · 755 阅读 · 1 评论 -
C#事件学习备忘1[学习笔记,摘录,非原创]
//DemoA:单播事件//=================================================================================using System;using System.Threading;using System.Collections;namespace percyboy.EventModelDemo.Demo1G{ //原创 2005-08-17 09:05:00 · 760 阅读 · 1 评论 -
在VPC 2004中安装Vista Bate 1
如果不做任何动作,安装过程中须出现这样的错误:The partition you selected is not ready for instantallation .Please reboot your computer and verity that the disk....解决方法:先用XP或Windows 2003的光盘(或镜像)格式化VPC虚拟硬盘.问题解决!原创 2005-09-05 11:39:00 · 719 阅读 · 0 评论