摘要: 现在可以在桌面上进行绘画了,但是当何时进行重绘,现在还没有解决方法。using System;using System.Runtime.InteropServices;using System.Drawing;namespace WindowsApplication2{public class WinScreen{[DllImport("gdi32.dll")]static extern IntPtr CreateDC(string lpDriverName, string lpDeviceName, string lpOutput, string lpInitData); 阅读全文
posted @ 2005-03-31 08:58 greystar 阅读(550) 评论(0) 推荐(0) 编辑
摘要: using System;using System.DirectoryServices; //要增加此DLL文件private void button3_Click(object sender, System.EventArgs e){try{DirectoryEntry AD = new DirectoryEntry("WinNT://" +Environment.MachineName + ",computer");DirectoryEntry NewUser = AD.Children.Add("TestUser1", &quo 阅读全文
posted @ 2005-03-31 08:47 greystar 阅读(449) 评论(0) 推荐(0) 编辑