Winform判断EventHandler是否已经添加
摘要:斜体部分替换成自己需要的 private bool HasValueChangedEventHandler(DateTimePicker b) { FieldInfo f1 = typeof(DateTimePicker).GetField("onV...
阅读全文
posted @
2014-05-04 09:48
eshizhan
阅读(622)
推荐(0)
显卡驱动卸载清理工具
摘要:比较实用的工具了,不用过多描述,你懂得。支持AMD ATI,NVIDIA,INTEL。Display Driver Uninstaller (DDU)http://www.guru3d.com/files_details/display_driver_uninstaller_download.html
阅读全文
posted @
2014-03-21 22:01
eshizhan
阅读(660)
推荐(0)
Resolve PSExec "Access is denied"
摘要:PSExec拒绝访问的解决办法Just modifyWindows Registry, and reboot.psexec_fix.reg:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]"LocalAccountTokenFilterPolicy"=dword:00000001ref:http://www.brandonmartinez.com/2013/04/24/resolve-access
阅读全文
posted @
2013-10-19 17:38
eshizhan
阅读(2144)
推荐(0)
wubi arguments
摘要:wubi arguments:form here or here. I coundn't found out wubi src address, you can tell me, if you know. ;)parser.add_option("--quiet", action="store_const", const="quiet", dest="verbosity", help="run in quiet mode, only critical error messages are disp
阅读全文
posted @
2013-04-01 16:47
eshizhan
阅读(261)
推荐(0)
[转]How to change Atheros AR9285 MAC addr on Win7(Win7下更改Atheros AR9285 MAC地址)
摘要:原文:http://hi.baidu.com/yinkeju/item/8160c53a16f125c7382ffa66原理:使用CommView修改版驱动依 山居最近开始折腾WI-FI无线网络密码破解,结果今天灵感一来,发现我已经连带地把WIN7 下不能任意修改MAC地址的问题解决掉了。可以任意修改无线网卡MAC地址,意味着我的无线网卡也可以通过无线盗用别人的IP和MAC上网了,意味着我可 以摆脱网线束缚,我可以抱着笔记本躲在厕所里上网了。我的笔记本无线网卡是AR9285,WIN7 64 位下面网上搜索到的修改无线网卡相关的文章:终于搞定了WIN7下修改无线网卡MAC地址 http://bb
阅读全文
posted @
2013-01-28 10:42
eshizhan
阅读(4149)
推荐(0)
解决Winform中ListView.TopItem设置的问题
摘要:在Winform中ListView的TopItem属性可以把某项设置设为ListView中最上面的第一项,但这个属性有问题,赋值后不一定该项不一定位于第一条,本质上Windows API没有提供类似的功能,可能是通过设置Scroll Value来封装的,问题比较好解决,进行重复赋值,直到达到正确的位置。public void SetScrollPosition(int pos){ pos = Math.Min(Items.Count - 1, pos); if (pos < 0 || pos >= Items.Count) return; EnsureVisible(pos); .
阅读全文
posted @
2012-09-19 00:13
eshizhan
阅读(2000)
推荐(0)
被某弹窗弄烦了--实现自动关闭弹窗
摘要:RT,的确是有点儿烦人,写了个Daemon修改配置文件中"CalcFrame,计算器",格式:"ClassName,标题",可以那spyxx抓下:<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.Application
阅读全文
posted @
2012-08-23 11:24
eshizhan
阅读(895)
推荐(0)
GRUB引导Win8,Win7,Ubuntu
摘要:与时俱进,装了Win8 RTM,我是直接光盘引导,安装在其中一个分区的。发现Win8安装过程是将原有Win7的Bootmgr和BCD覆盖升级并加入Win8引导项目,换句话说,Win7和Win8是共用一个Bootmgr和BCD的,这使得GRUB无法直接引导Win7和Win8,需要在进入Bootmgr后在选择,能不能直接在GRUB中直接集成Ubuntu,Win7,Win8引导项目呢?当然可以。1.原理Win7,Win8操作系统引导原理简简介POST->MBR->VBR(PBR)->Bootmgr->BCD->winload.exe->ntoskrnl.exe..
阅读全文
posted @
2012-08-22 11:38
eshizhan
阅读(10858)
推荐(1)
Win8蓝屏(WHEA_UNCORRECTABLE_ERROR)
摘要:Win8下安装VS2012时,蓝屏,报错WHEA_UNCORRECTABLE_ERROR(P.S.新的BSOD挺有创意":("),Google之,发现[via]需要BIOS中禁用Intel C-State,有严重Bug的嫌疑哦原因有空再看看
阅读全文
posted @
2012-08-19 23:43
eshizhan
阅读(16592)
推荐(1)
sudo on Win7
摘要:TODO:sudo.cmd:@echo Set objShell = CreateObject("Shell.Application") > %temp%\sudo.tmp.vbs@echo args = Right("%*", (Len("%*") - Len("%1"))) >> %temp%\sudo.tmp.vbs@echo objShell.ShellExecute "%1", args, "", "runas" >>
阅读全文
posted @
2012-07-10 09:25
eshizhan
阅读(714)
推荐(0)
当前没有活动的视觉样式,因此与视觉样式相关的操作导致错误。Visual Styles-related operation resulted in an error because no visual style is currently active.
摘要:Q:当前没有活动的视觉样式,因此与视觉样式相关的操作导致错误。Visual Styles-related operation resulted in an error because no visual style is currently active.A:If you use VisualStyleRenderer,please check Application.RenderWithVisualStyles,because may be OS disable Visual Styles.if (Application.RenderWithVisualStyles){ TODO....
阅读全文
posted @
2012-05-09 10:24
eshizhan
阅读(2379)
推荐(0)
An error was detected on device \Device\Harddisk3\DR3 during a paging operation.(传呼期间在设备 \Device\Harddisk1\D 上检测到一个错误。)
摘要:电脑老是经常卡死,一两分钟才恢复,还有关机不断电的症状。系统日志大概分为两类报错:1.Event ID: 51 Event Type: Warning Event Source: Disk Description: An error was detected on device \Device\Harddisk3\DR3 during a paging operation.(传呼期间在设备 \Device\Harddisk1\D 上检测到一个错误。)2.Event ID: 9Event Type: ErrorEvent Source: nvgtsDescription:a parity err
阅读全文
posted @
2012-04-15 13:11
eshizhan
阅读(5875)
推荐(0)
用设备管理器清理陈旧的设备信息(如U盘,COM,网卡等)
摘要:陈旧的设备会拖延系统某些情况下的速度,每当系统增加新设备时,系统会将设备驱动和设备信息保留,以便下次使用时快速查找,可是这也带来诸多问题,如有时别人的U盘就使用一次,也会留下信息;有时陈旧的设备信息会和新设备产生冲突等。网上有很多方法清理这类信息,大部分都是清理注册表,手动清理麻烦,而自动工具清理又不放心,其实Windows设备管理器就自带这种功能了,用了十年Win这两天才发现,Share给大家了。其实很简单,就是一个环境变量,执行下面批处理后,在设备管理器“查看”菜单中选“显示隐藏的设备”就能看到了,清理控们上啊;):@echo offset DEVMGR_SHOW_NONPRESENT_D
阅读全文
posted @
2012-04-15 11:32
eshizhan
阅读(1147)
推荐(0)
压缩虚拟机硬盘(VMDK VDI)大小
摘要:本文只介绍手动压缩方法。1.首先要在Guest系统上,把所有没用的数据写零*NIX,执行:dd if=/dev/zero of=/bigemptyfilerm /bigemptyfileWindows,执行(sdelete.exe):sdelete -c -z C:\2.关闭Guest,开始压缩硬盘文件Virtual Box:VBoxManage modifyhd --compact my_hd.vdiVMware:vmware-vdiskmanager -k my_hd.vmdk[via] [vmware-vdiskmanager_SDelete.zip]
阅读全文
posted @
2012-04-10 22:11
eshizhan
阅读(6523)
推荐(0)
害人的RestoreDirectory
摘要:莫名其妙出现找不到文件的错误。经查,发现:OpenFileDialog,SaveFileDialog在选择文件后,会切换当前程序目录的路径(System.Environment.CurrentDirectory)。两个控件有个RestoreDirectory属性,=true,解决。而且这玩意儿还跟操...
阅读全文
posted @
2012-04-10 16:42
eshizhan
阅读(1106)
推荐(0)
在VirtualBox中用U盘引导启动
摘要:命令其实很简单:VBoxManage internalcommands createrawvmdk -filename "%USERPROFILE%"\.VirtualBox\usb.vmdk -rawdisk \\.\PhysicalDriveX其中X为磁盘管理器中U盘的编号,如果你的机器为单硬盘,那么硬盘编号为0,U盘就为1啦,千万不要弄错。启动VBOX,选择模拟好的那块硬盘启动就OK啦。Win7/Vista,一定要在管理员下的干活。有兴趣的童鞋可以看看生成后的VMDK文件:# Disk DescriptorFileversion=1CID=ff985184parent
阅读全文
posted @
2012-04-06 14:27
eshizhan
阅读(5609)
推荐(1)
ListView hide column by easy way
摘要:ListView hide column by easy way用简单方式隐藏ListView中的列lvData.Columns[5].Width=0;and并且lvData.ColumnWidthChanging += new ColumnWidthChangingEventHandler(lvMatchupList_ColumnWidthChanging);void lvMatchupList_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e){ if (e.ColumnIndex == 5 &&am
阅读全文
posted @
2012-03-08 12:16
eshizhan
阅读(662)
推荐(0)
安装VirtualBox出现Installation failed! Error: 系统找不到指定的路径
摘要:Win7安装VirtualBox出现Installation failed! Error: 系统找不到指定的路径是由于中文账户名引起的,如:C:\Users\小明两个解决办法:1.该用户名,这个麻烦点儿,但很彻底,有注册表修改经验的可参考这篇:如何改变X:\Users\XXX的用户名称。2.加参数VirtualBox-XXXXX-Win.exe -extract ,解压这个包,再到%temp%\VirtualBox文件夹(Win+R,输入%temp%\VirtualBox,Enter)中找对应的文件安装。
阅读全文
posted @
2011-12-04 12:19
eshizhan
阅读(1443)
推荐(0)
如何改变X:\Users\XXX的用户名称
摘要:参考了两篇文章:How to Change the User Folder Name of a User Profile in Windows 7http://www.sevenforums.com/tutorials/147545-user-profile-folder-change-user-account-folder-name.htmlHow To Change A Windows Account Name And User Profile Folder Namehttp://www.ghacks.net/2011/03/28/how-to-change-a-windows-accou
阅读全文
posted @
2011-12-04 12:01
eshizhan
阅读(4264)
推荐(0)
Windows 7 支持4GB以上内存破解工具下载
摘要:名称:ReadyFor4GB功能:使工作站版本 32位 x86 的 Vista/Windows 7 支持超过 4GB 物理内存使用方法:运行ReadyFor4GB.exe,之后运行AddBootMenu.cmd,重启后启动菜单选带有128GB的原理:破解Windows PAE 内核文件 ntkrnlpa.exe,绕过 ZwQueryLicenseValue API 函数的许可限制详细的内容请看原文:http://www.geoffchappell.com/viewer.htm?doc=notes/windows/license/memory.htm主要是PAE技术,需要CPU硬件支持和操作系统
阅读全文
posted @
2011-11-28 21:52
eshizhan
阅读(824)
推荐(0)