摘要: 显示结果为111121 阅读全文
posted @ 2014-04-18 09:33 bk.lling 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 1 string KJQD = WebConfigurationManager.AppSettings["address"].ToString().Trim(); 2 //string KJQD = Application.ExecutablePath; //两种方式 3 if (!System.IO.File.Exists(KJQD))//判断指定文件是否存在 4 { 5 MessageBox.Show("呼叫管理员!", "温馨提示", MessageBoxButtons.OK,... 阅读全文
posted @ 2014-01-07 14:36 bk.lling 阅读(471) 评论(0) 推荐(0) 编辑
摘要: [DllImport("user32.dll", EntryPoint = "keybd_event")] public static extern void keybd_event( byte bVk, byte bScan, int dwFlags, //这里是整数类型 0 为按下,2为释放 int dwExtraInfo //这里是整数类型 一般情况下设成为 0 ); //模拟按键shift+ctrl+x public void ... 阅读全文
posted @ 2013-12-25 15:20 bk.lling 阅读(1054) 评论(0) 推荐(1) 编辑
摘要: C#调用Delphi接口方法,有两种解决办法:一、将Delphi程序编译成一个COM组件,然后在C#里引用COM组件。二、非托管调用Dephi的DLL文件。这里我们主要讲解一下第二种方法,讲第二种方法之前首先讲解下DllImport。 DllImport是System.Runtime.InteropServices命名空间下的一个属性类,其功能是提供从非托管DLL导出的函数的必要调用信息。 DllImport属性应用于方法,要求最少要提供包含入口点的dll的名称。DllImport的定义如下:[AttributeUsage(AttributeTargets.Method)]publicclas 阅读全文
posted @ 2013-12-25 12:05 bk.lling 阅读(2356) 评论(1) 推荐(0) 编辑
摘要: struct GetDeviceCapsIndex { public static readonly int DRIVERVERSION = 0; public static readonly int HORZSIZE = 4; public static readonly int VERTSIZE = 6; public static readonly int HORZRES = 8; public static readonly int VERTRES = 10; ... 阅读全文
posted @ 2013-12-19 14:10 bk.lling 阅读(728) 评论(0) 推荐(0) 编辑
摘要: 控件置顶:控件名.BringToFront();控件置底:控件名.SendToBack(); 阅读全文
posted @ 2013-12-19 14:08 bk.lling 阅读(2853) 评论(0) 推荐(0) 编辑
摘要: #region 获取windows桌面背景 [System.Runtime.InteropServices.DllImport("user32.dll", CharSet = System.Runtime.InteropServices.CharSet.Auto, SetLastError = true)] public static extern int SystemParametersInfo(int uAction, int uParam, StringBuilder lpvParam, int fuWinIni);private const int SPI_GETD 阅读全文
posted @ 2013-12-19 13:08 bk.lling 阅读(827) 评论(0) 推荐(0) 编辑
摘要: 第一步,编写脚本: function WALL_web() { var WshShell = new ActiveXObject('WScript.Shell') WshShell.SendKeys('{F11}'); }第二步,加载时调用:$(document).ready(function () {WALL_web();});若是执行不成功,则执行三步,设置IE添加好地址后,继续设置,如图设置启动后,点击确定即可在打开浏览器即可显示全屏 阅读全文
posted @ 2013-12-03 11:08 bk.lling 阅读(3360) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-11-29 12:02 bk.lling 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 第一步:将aspx页面标签清空。只剩下page声明即可。如下图第二步:准备xml格式数据,第三步:在cs文件pageload方法里写if (!IsPostBack){Response.ContentType = "text/xml";Response.Charset = "utf-8";Response.Write(str_xml);}第四步:浏览即可。 阅读全文
posted @ 2013-10-22 16:38 bk.lling 阅读(220) 评论(0) 推荐(0) 编辑