随笔 - 657  文章 - 4  评论 - 213  阅读 - 432万
05 2011 档案
C#当前窗口抓图
摘要://当前窗口宽度intiWidth=this.Width;//当前窗口高度intiHeight=this.Height;//截取主屏幕ScreenscrPrimary=Screen.PrimaryScreen;//创建一个和屏幕一样大的BitmapImagemyImage=newBitmap(iWidth,iHeight);//从一个继承自Image类的对象中创建Graphics对象Graphicsgraphi=Graphics.FromImage(myImage);//抓屏并拷贝到myimage里graphi.CopyFromScreen(newPoint(this.Location.X,t 阅读全文
posted @ 2011-05-26 19:58 一路前行 阅读(438) 评论(0) 推荐(0) 编辑
查看sqlserver连接数
摘要:selectcount(spid)ascounts,status,hostname,dbname=casewhendbid=0thennullwhendbid<>0thendb_name(dbid)endfrommaster.dbo.sysprocesseswherespid>=0andspid<=32767andstatus='runnable'anddb_name(dbid)='数据库名'groupbystatus,hostname,casewhendbid=0thennullwhendbid<>0thendb_name( 阅读全文
posted @ 2011-05-26 10:52 一路前行 阅读(444) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示