上一页 1 ··· 103 104 105 106 107 108 109 110 111 ··· 118 下一页
摘要: 随便写写的一个例子: // 保存图片到 XML 文件 private void Form1_Load(object sender, System.EventArgs e) { Image img = Image.FromFile(@"E:\MyDocs\My Pictures\样品.jpg"); System.IO.MemoryStream stream = new System.IO.MemoryStream(); img.Save(stream, ImageFormat.Jpeg); byte[] b = stream.GetBuffer(); string s = C 阅读全文
posted @ 2012-04-21 22:18 跟着阿笨一起玩.NET 阅读(371) 评论(0) 推荐(0) 编辑
摘要: staticclassProgram{///<summary>///Themainentrypointfortheapplication.///</summary>[STAThread]staticvoidMain(){Application.EnableVisualStyles();Application.SetCompatibleTextRenderingDefault(false);Application.Run(MainForm.Instance);}}publicpartialclassMainForm:Form{staticMainForm_form;pub 阅读全文
posted @ 2012-04-21 22:10 跟着阿笨一起玩.NET 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 本文转载:http://www.cnblogs.com/lefay/archive/2010/07/25/1784919.html 阅读全文
posted @ 2012-04-21 21:50 跟着阿笨一起玩.NET 阅读(346) 评论(0) 推荐(0) 编辑
摘要: sql多条件查询的一种简单的方法以后我们做多条件查询,一种是排列结合,另一种是动态拼接SQL如:我们要有两个条件,一个日期@addDate,一个是@name第一种写法是if(@addDateisnotnull)and(@name<>'')select*fromtablewhereaddDate=@addDateandname=@nameelseif(@addDateisnotnull)and(@name='')select*fromtablewhereaddDate=@addDateelseif(@addDateisnull)and(@name< 阅读全文
posted @ 2012-04-21 21:30 跟着阿笨一起玩.NET 阅读(481) 评论(1) 推荐(0) 编辑
摘要: 操作XML文件经常会用到XPath表达式。博客园这位前辈总结的是相当的不错,通俗易懂。特此分享给大家。http://www.cnblogs.com/ipointer/archive/2005/10/20/258305.html xpath获取标签属性值 <a href='www.some.com'> 阅读全文
posted @ 2012-04-21 21:11 跟着阿笨一起玩.NET 阅读(284) 评论(1) 推荐(0) 编辑
摘要: 下面都是我比较喜欢的博客园三位牛X人!特此向前辈们致敬!(1)、winform 复选框控件赋值的小技巧:http://www.cnblogs.com/wuhuacong/archive/2010/02/07/1665438.html(2)、构建 WinForm 通用速选(全选、反选、清空)组件 http://www.cnblogs.com/ldp615/archive/2009/11/29/WinForm_FastSelect_Component.html(3)、c# 扩展方法奇思妙用高级篇六:WinForm 控件选择器。http://www.cnblogs.com/ldp615/archi. 阅读全文
posted @ 2012-04-21 00:11 跟着阿笨一起玩.NET 阅读(482) 评论(0) 推荐(0) 编辑
摘要: ///<summary>///MessageUtil的摘要说明。///</summary>publicclassMessageUtil{///<summary>///显示一般的提示信息///</summary>///<paramname="message">提示信息</param>publicstaticDialogResultShowTips(stringmessage){returnMessageBox.Show(message,"提示信息",MessageBoxButtons. 阅读全文
posted @ 2012-04-18 22:53 跟着阿笨一起玩.NET 阅读(1830) 评论(0) 推荐(0) 编辑
摘要: private void treeView1_AfterCheck(object sender, TreeViewEventArgs e){ if (e.Action != TreeViewAction.ByMouse) return; SetParentNode(e.Node); SetChildNode(e.Node);}private void SetParentNode(TreeNode node){ if (node.Level > 0) { node.Parent.Checked = true; SetParentNode(node.Parent); }}private vo 阅读全文
posted @ 2012-04-18 22:30 跟着阿笨一起玩.NET 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 本文转载:Dockable Window开源组件分享:http://www.cnblogs.com/Microred/archive/2012/02/13/2349590.html开源组件DockPanel Suite使用:http://www.cnblogs.com/Microred/archive/2012/02/14/2350244.html 参考文章:http://www.cnblogs.com/kongyiyun/archive/2012/01/07/2315636.html#2316822强烈推荐的:http://www.codeproject.com/Articles/7332/ 阅读全文
posted @ 2012-04-18 22:26 跟着阿笨一起玩.NET 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 此文章写的是相当的好。http://www.cnblogs.com/huyong/archive/2010/12/18/1910253.htmlwuhuacong(伍华聪)): http://www.cnblogs.com/wuhuacong/archive/2011/11/24/2262068.h... 阅读全文
posted @ 2012-04-18 22:10 跟着阿笨一起玩.NET 阅读(840) 评论(2) 推荐(0) 编辑
上一页 1 ··· 103 104 105 106 107 108 109 110 111 ··· 118 下一页