摘要: //关闭显示器类... class CloseMonitor { //系统消息 private const uint WM_SYSCOMMAND = 0x112; //关闭显示器的系统命令 private const int SC_MONITORPOWER = 0xF170; //2为PowerOff, 1为省电状态,-1为开机 private const int MonitorPowerOff = 2; //广播消息,所有顶级窗体都会接收 private static readonly IntPtr HWND_BROADCAST = new IntPtr(0xffff); //导入API.. 阅读全文
posted @ 2012-03-30 19:08 氺〤魚Oo。 阅读(237) 评论(0) 推荐(0) 编辑
摘要: //获取用户当前选择的行的数据 string name=this.listViewAdmin.FocusedItem.SubItems[0].Text; name += " "; name += this.listViewAdmin.FocusedItem.SubItems[1].Text; MessageBox.Show(name); 阅读全文
posted @ 2012-03-30 13:08 氺〤魚Oo。 阅读(4767) 评论(0) 推荐(0) 编辑