甜美镜子

文章
7
资源
1
加入时间
3年1月10天

C#1--100猜数游戏

先建立一个窗体form在工具里选label、textbox、button定好位置先双击窗体form,编译生成随机数然后对button1编译(语句还不太明白,,,)最后记得加一个计数的变量countusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Tex

文件监控

文件监控有几种方法:FindFirstChangeNotification,ReadDirectoryChangesW,SHChangeNotifyRegister。Find那个只能监控到文件有变动,但是进一步的信息就没有了,Read好多参数啊,所以我尝试一下用Shell API。 Shell在WM和PC下是两种不同的方法,WM下的参数比较简单,一个hwnd用来接受消息,一个SHCHA