摘要: 装箱(Boxing):值类型->引用类型,把一个值类型数据放到堆上,就需要装箱操作. 拆箱(Unboxing):引用类型->值类型,把一个放在堆上的值类型数据取出来,则需要进行拆箱操作. 值类型(原类型(Sbyte、Byte、Short、Ushort、Int、Uint、Long、Ulong、Char 阅读全文
posted @ 2011-10-31 14:08 ike_li 阅读(390) 评论(0) 推荐(0) 编辑
摘要: publicvoidDrivePrint(stringfilePath){stringpdfPath=filePath;System.Drawing.Printing.PrintDocumentpd=newSystem.Drawing.Printing.PrintDocument();ProcessprocessInstance=newProcess();ProcessStartInfostartInfo=newProcessStartInfo();startInfo.UseShellExecute=true;startInfo.Verb="Print";startInfo 阅读全文
posted @ 2011-05-04 15:42 ike_li 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 1.设置窗体属性ShowInTaskbar=false 2.加notifyicon控件notifyicon1,为控件notifyicon1的属性icon添加一个icon图标。 3.添加触发事件代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//窗体... 阅读全文
posted @ 2010-11-29 10:55 ike_li 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privatestringGetLocalIp(){stringlocalIp;IPHostEntryhost;host=Dns.GetHostEntry(Dns.GetHostName());if(... 阅读全文
posted @ 2010-11-09 15:44 ike_li 阅读(640) 评论(2) 推荐(0) 编辑
摘要: [代码]调用代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privatevoidFrmMain_Load(objectsender,EventArgse){if(IsRunning("CleanFileServer")==true){Messag... 阅读全文
posted @ 2010-11-09 12:11 ike_li 阅读(318) 评论(0) 推荐(1) 编辑
摘要: 1.数据库下载地址 http://sqlite.phxsoftware.com/ 2.下载完成添加引用System.Data.SQLite.dll 3.SQLite操作通用类 <!--<br/><br/>Code highlighting produced by Actipro CodeHighli 阅读全文
posted @ 2010-11-01 15:48 ike_li 阅读(785) 评论(0) 推荐(0) 编辑
摘要: 获取电脑CPUID,HdId,MacId后,加工处理这个字符串代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//交换字符的位置privatestringChangCharLocation(stringpcNum){stringhidMacId=p... 阅读全文
posted @ 2010-08-03 14:55 ike_li 阅读(257) 评论(0) 推荐(0) 编辑
摘要: a56爆大奖在线娱乐们在编写C/S架构的Windows程序时,就回涉及到登录窗体和主窗体的切换问题,现根据不同的思路设计如下:a56爆大奖在线娱乐们首先假设Login为登录窗体,Main为主窗体如果a56爆大奖在线娱乐们在Program.cs中的Main函数设置Login为启动的话,也就是设置登录窗体为主窗体,这样的话Main主窗体就不能使用Main函数来打开了,如果在使用它来打开就回出现“在单个线程上开始另一个消息循环是无效操作"的错误... 阅读全文
posted @ 2010-08-03 09:51 ike_li 阅读(684) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2010-08-02 16:29 ike_li 阅读(24) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2010-08-02 16:23 ike_li 阅读(15) 评论(0) 推荐(0) 编辑