上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 85 下一页
  2012年9月12日
摘要: using System.Drawing;[Flags] private enum MouseEventFlags { LEFTDOWN = 0x00000002, LEFTUP = 0x00000004, MIDDLEDOWN = 0x00000020, MIDDLEUP = 0x00000040, MOVE = 0x00000001, ABSOLUTE = 0x00008000, RIGHTDOWN = 0x00000008, RIGHTUP = 0x00000010 } [Flags] private enum Win32Consts { INPUT_MOUSE = 0, INPUT_K 阅读全文
posted @ 2012-09-12 09:44 武胜-阿伟 阅读(267) 评论(0) 推荐(0)
摘要: private delegate object GetButtonTagDelegate(ref Button b);private object GetButtonTag(ref Button b) { if (InvokeRequired) { return Invoke(new GetButtonTagDelegate(GetButtonTag), new object[] {b}); } return b.Tag; }private delegate int GetComboBoxSelectedIndexDelegate(ref ComboBox cb);private int Ge 阅读全文
posted @ 2012-09-12 08:58 武胜-阿伟 阅读(651) 评论(0) 推荐(0)
  2012年9月10日
摘要: Name: "unpack.cn"Addr1: "ygeR@teamzwt.com"Addr2: "TEAM ZWT"Key1: "983BE1575A4B2F5732542FC980920770"Key2: "55B804664E44E521A9C97D69DD538944"Chksm: "BE" 阅读全文
posted @ 2012-09-10 16:09 武胜-阿伟 阅读(302) 评论(0) 推荐(0)
  2012年8月26日
摘要: 1、winform没有,可以加个StatusLabe来模拟这种效,简单点的,Text清空,BorderSides只设左或右,再设置适当的Margin就差不多了,或者是用个Image来达到这个效果;2、private System.Windows.Forms.ToolStripStatusLabel toolSeparator1; 相应的改为: private System.Windows.Forms.ToolStripSeparator toolSeparator1; 就是说这个分隔条还是ToolStripSeparator。 这个修改可以在窗体的Form1.Designer.... 阅读全文
posted @ 2012-08-26 11:06 武胜-阿伟 阅读(720) 评论(0) 推荐(0)
  2012年6月27日
摘要: Unable to convert MySQL date/time value to System.DateTime 解决方案这个问题发生在MySQL数据里面有Date类型数据,在C#中查询出来时候时间的类型不一致而导致!网上看了一下,找到有两种解决方案:1、在连接字符串中加入“Allow Zero Datetime=True”; con = new MySqlConnection("server=localhost;database=test;CharSet=gb2312;pooling=false;port=3306;UId=root;Pwd=pwd;Allow Zero Dat 阅读全文
posted @ 2012-06-27 10:07 武胜-阿伟 阅读(6121) 评论(4) 推荐(3)
  2012年6月25日
摘要: DockPanel Suite Development Has Moved!DockPanel Suite is now being actively developed on GitHub:http://github.com/dockpanelsuiteThe latest binaries are available on the download page:http://github.com/dockpanelsuite/dockpanelsuite/downloads 阅读全文
posted @ 2012-06-25 16:18 武胜-阿伟 阅读(562) 评论(0) 推荐(1)
  2012年6月10日
摘要: While working on an article for CodeProject, I happened on a requirement to create a WCF service using NamedPipe binding. The client application (a Windows Service) would be sending periodic messages, and if the sever (a SysTray application) was listening, it would insert those messages into a ListB 阅读全文
posted @ 2012-06-10 09:07 武胜-阿伟 阅读(499) 评论(0) 推荐(0)
  2012年6月8日
摘要: 利用ICSharpCode.SharpZipLib.dll实现简单加解压本文主要提供了一个利用ICSharpCode.SharpZipLib.dll实现简单加解压的功能类,ICSharpCode.SharpZipLib.dll可以从http://www.icsharpcode.net/OpenSource/SharpZipLib/取得。因为现阶段只需要对文件夹进行压缩,所以提供接口的功能并不全面,以后有空或有需要的时候会进行扩充。usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingICSharpCode.Sharp 阅读全文
posted @ 2012-06-08 11:45 武胜-阿伟 阅读(2923) 评论(0) 推荐(0)
摘要: 转义字符不合法的XML字符必须被替换为相应的实体。 如果在XML文档中使用类似"<" 的字符, 那么解析器将会出现错误,因为解析器会认为这是一个新元素的开始。所以不应该象下面那样书写代码:<message>if salary < 1000 then</message>为了避免出现这种情况,必须将字符"<" 转换成实体,象下面这样:<message>if salary &lt; 1000 then</message>下面是五个在XML文档中预定义好的实体:&lt;<小于 阅读全文
posted @ 2012-06-08 11:44 武胜-阿伟 阅读(235) 评论(0) 推荐(0)
摘要: C#根据字符串获取对应类型(Type)publicstaticTypeGetTypeByString(stringtype){switch(type.ToLower()){case"bool":returnType.GetType("System.Boolean",true,true);case"byte":returnType.GetType("System.Byte",true,true);case"sbyte":returnType.GetType("System.SByte&q 阅读全文
posted @ 2012-06-08 11:43 武胜-阿伟 阅读(14605) 评论(1) 推荐(0)
上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 85 下一页