• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
wjshan0808

Learn from yesterday, Live for today, For a better tomorrow.
 ————wjshan0808

博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
2015年1月20日
接收按键消息
摘要: public const int WM_KEYDOWN = 0x0100;//按键消息 public const int WM_SYSKEYDOWN = 0x0104;//快捷键或系统命令键的消息 protected override bool ProcessCmdKe... 阅读全文
posted @ 2015-01-20 10:38 wjshan0808 阅读(126) 评论(0) 推荐(0)
注册系统热键
摘要: /// /// Defines a system-wide hot key. /// /// A handle to the window that will receive WM_HOTKEY messages generated by the hot... 阅读全文
posted @ 2015-01-20 10:26 wjshan0808 阅读(159) 评论(0) 推荐(0)
获取剪贴板中的数据
摘要: /// /// Adds the specified window to the chain of clipboard viewers. Clipboard viewer windows receive a WM_DRAWCLIPBOARD message whenever the... 阅读全文
posted @ 2015-01-20 09:46 wjshan0808 阅读(523) 评论(0) 推荐(0)
2015年1月19日
遍历系统环境变量的键和值
摘要: //遍历环境变量的键和值 foreach(DictionaryEntry en in Environment.GetEnvironmentVariables()) { en.Key.ToString(); ... 阅读全文
posted @ 2015-01-19 17:29 wjshan0808 阅读(223) 评论(0) 推荐(0)
程序图标不在任务栏上显示
摘要: this.ShowInTaskbar = false; 阅读全文
posted @ 2015-01-19 17:22 wjshan0808 阅读(185) 评论(0) 推荐(0)
获取鼠标位置的颜色值
摘要: Color c = new Color();//创建颜色对象 Bitmap bitmap = new Bitmap(this.BackgroundImage);//创建BITMAP对象 int x = Cursor.Position.X;//鼠标x坐标 ... 阅读全文
posted @ 2015-01-19 17:17 wjshan0808 阅读(1156) 评论(0) 推荐(0)
接触/限制鼠标活动区域
摘要: this.Cursor = new Cursor(Cursor.Current.Handle); Cursor.Position = new Point(Cursor.Position.X,Cursor.Position.Y);//鼠标位置 Cursor.... 阅读全文
posted @ 2015-01-19 17:16 wjshan0808 阅读(309) 评论(0) 推荐(0)
系统的启动模式
摘要: SystemInformation.BootMode 阅读全文
posted @ 2015-01-19 17:10 wjshan0808 阅读(134) 评论(0) 推荐(0)
获取系统用户名
摘要: ManagementClass mc = new ManagementClass("Win32_ComputerSystem");//实例化 ManagementObjectCollection moc = mc.GetInstances();//获取管理对象集合 ... 阅读全文
posted @ 2015-01-19 17:06 wjshan0808 阅读(166) 评论(0) 推荐(0)
获取进程并关闭
摘要: using System.Diagnostics;Process[] myprocess = Process.GetProcesses();//获取进程foreach (Process pro in myprocess) { if (pro.Mai... 阅读全文
posted @ 2015-01-19 17:03 wjshan0808 阅读(198) 评论(0) 推荐(0)
遍历系统中的打印机
摘要: System.Drawing.Printing.PrinterSettings.InstalledPrinters 阅读全文
posted @ 2015-01-19 16:37 wjshan0808 阅读(208) 评论(0) 推荐(0)
获取/设置计算机名字
摘要: using Microsoft.VisualBasic.Devices;//Microsoft.VisualBasic.dll/// /// Sets a new NetBIOS name for the local computer. The name is stored in t... 阅读全文
posted @ 2015-01-19 16:26 wjshan0808 阅读(181) 评论(0) 推荐(0)
设置系统时间
摘要: /// /// Sets the current local time and date. /// /// /// [DllImport("kernel32", CharSet = CharSet.Unicode, Se... 阅读全文
posted @ 2015-01-19 16:24 wjshan0808 阅读(244) 评论(0) 推荐(0)
操作系统信息
摘要: OperatingSystem myOS = Environment.OSVersion;//创建对象 阅读全文
posted @ 2015-01-19 16:03 wjshan0808 阅读(149) 评论(0) 推荐(0)
隐藏/显示任务栏
摘要: /// /// Retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not sear... 阅读全文
posted @ 2015-01-19 15:56 wjshan0808 阅读(177) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3