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

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

博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
2015年1月19日
鼠标左右键互换
摘要: /// /// Reverses or restores the meaning of the left and right mouse buttons. /// /// If this parameter is TRUE, the left button generates right-button messages and the righ... 阅读全文
posted @ 2015-01-19 15:48 wjshan0808 阅读(182) 评论(0) 推荐(0)
系统输入法设置
摘要: InputLanguage.CurrentInputLanguage input=InputLanguage.InstalledInputLanguages[1]; 阅读全文
posted @ 2015-01-19 14:49 wjshan0808 阅读(139) 评论(0) 推荐(0)
清空回收站
摘要: /// /// Empties the Recycle Bin on the specified drive. /// /// A handle to the parent window of any dialog boxes that might be... 阅读全文
posted @ 2015-01-19 14:44 wjshan0808 阅读(139) 评论(0) 推荐(0)
锁定计算机
摘要: //锁定计算机[DllImportAttribute("user32.dll")]public static extern void LockWorkStation();禁止关闭计算机private const int WM_QUERYENDSESSION = 0x0011;//windows消息 ... 阅读全文
posted @ 2015-01-19 14:30 wjshan0808 阅读(162) 评论(0) 推荐(0)
cmd
摘要: Process p = new Process();//创建进程对象 string drivename = cboDrive.Text;//盘符 string shareName = txtShareName.Text;//共享名 ... 阅读全文
posted @ 2015-01-19 14:17 wjshan0808 阅读(176) 评论(0) 推荐(0)
磁盘信息
摘要: using System.Management;using System.IO; //System.Management.dll //创建WMI查询 ManagementObjectSearcher searcher = new ManagementObje... 阅读全文
posted @ 2015-01-19 14:02 wjshan0808 阅读(130) 评论(0) 推荐(0)
Regist
摘要: using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer")) { key.SetValue... 阅读全文
posted @ 2015-01-19 12:28 wjshan0808 阅读(1337) 评论(0) 推荐(0)
2015年1月17日
c# 隐藏 控制台应用程序
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;using System.Runtime.InteropServices;namesp... 阅读全文
posted @ 2015-01-17 13:07 wjshan0808 阅读(519) 评论(0) 推荐(0)
2015年1月15日
Ping
摘要: const int SOCKET_ERROR = -1; const int ICMP_ECHO = 8; public string PingHost(string host) { IPHostEntry server... 阅读全文
posted @ 2015-01-15 16:50 wjshan0808 阅读(210) 评论(0) 推荐(0)
浏览器窗口
摘要: 百度baidu 阅读全文
posted @ 2015-01-15 09:44 wjshan0808 阅读(170) 评论(0) 推荐(0)
2015年1月14日
SQL 笔记
摘要: 返回字符串中从左/右边开始指定个数的字符select left('wjshan0808',6) select right('wjshan0808',4)select left([Column_expression],1)返回字符、二进制、文本或图像表达式的一部分select substring('w... 阅读全文
posted @ 2015-01-14 13:38 wjshan0808 阅读(196) 评论(0) 推荐(0)
数据库连接字符串
摘要: new SqlConnection("server=LJM\\MSSQL2005;database=MySchool;uid=sa;pwd=123456")//连接Access数据库new OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;dat... 阅读全文
posted @ 2015-01-14 09:13 wjshan0808 阅读(239) 评论(0) 推荐(0)
2015年1月13日
获取网卡地址信息
摘要: public string GetMacAddress() { try { string mac = ""; ManagementClass mc = new Man... 阅读全文
posted @ 2015-01-13 17:25 wjshan0808 阅读(166) 评论(0) 推荐(0)
启动所选择的应用程序
摘要: Process ps = new Process(); ps.StartInfo.FileName = textBox1.Text; //启动所选择的应用程序 ps.Start(); 阅读全文
posted @ 2015-01-13 16:31 wjshan0808 阅读(170) 评论(0) 推荐(0)
获取网络IP地址
摘要: IPHostEntry iphost = Dns.GetHostEntry(txtDNS.Text);//解析并返回IPHostEntry对象 foreach (IPAddress ip in iphost.AddressList)//遍历IP地址 ... 阅读全文
posted @ 2015-01-13 16:12 wjshan0808 阅读(153) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3