摘要: 本文章主要用于做接口形式跨进程的使用。 额外提下: 发普通消息与此类同 1 public const int WM_SETTEXT = 12; 2 public const int CB_SETCURSEL = 0X014D; 3 [DllImport("user32.dll", EntryPoin 阅读全文
posted @ 2020-08-26 15:20 雲瑞 阅读(1661) 评论(0) 推荐(0) 编辑
摘要: 如程序以普通方式打开,那么DragDrop DragEnter 事件是可以正常使用的。但以管理员身份运行时,这两个方法将失效。 原因是 Windows机制(用户界面特权隔离). UIPI:用户界面特权隔离(User Interface Privilege Isolation),是 Windows 7 阅读全文
posted @ 2020-08-26 14:49 雲瑞 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 1 public class TimeTool 2 { 3 //根据出生年月计算 整数天 4 private static int GetAgeByBirthdate(DateTime birthdate) 5 { 6 DateTime now = DateTime.Now; 7 int age = 阅读全文
posted @ 2020-08-26 10:38 雲瑞 阅读(538) 评论(0) 推荐(0) 编辑