会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
阚金翔
达则兼济天下,穷则独善其身
博客园
首页
新随笔
新文章
联系
订阅
管理
上一页
1
2
3
2017年11月29日
屏幕截屏
摘要: //获得当前屏幕的分辨率 Rectangle rc = sc.Bounds; int iWidth = rc.Width; int iHeight = rc.Height; //创建一个和屏幕一样大的Bitmap Bitmap myImage = new Bitmap(iWidth, iHeight
阅读全文
posted @ 2017-11-29 14:37 阚金翔
阅读(176)
评论(0)
推荐(0)
2017年11月28日
通过注册表实现开机自启的取消
摘要: 一、添加引用 using Microsoft.Win32;//添加的引用 二、开启和关闭的方法 string path = Application.ExecutablePath; RegistryKey rk = Registry.LocalMachine; RegistryKey rk2 = rk
阅读全文
posted @ 2017-11-28 17:26 阚金翔
阅读(756)
评论(0)
推荐(0)
判断字符串是否为空的几种方法
摘要: string str = string.Empty;if (str == ""){ }else { } if (str == string.Empty){ }else { } if (str.Length == 0)//效率最高{ }else { } if (string.IsNullOrEmpty
阅读全文
posted @ 2017-11-28 09:21 阚金翔
阅读(2267)
评论(0)
推荐(0)
重命名文件
摘要: Computer MyComputer = new Computer();MyComputer.FileSystem.RenameFile(FileName, newFileName);//其中FileName是你所要重命名的文件的全路径,newFileName仅仅是目标文件名。 创建于2017年2
阅读全文
posted @ 2017-11-28 09:20 阚金翔
阅读(134)
评论(0)
推荐(0)
上一页
1
2
3