摘要:
///<summary>///MessageUtil的摘要说明。///</summary>publicclassMessageUtil{///<summary>///显示一般的提示信息///</summary>///<paramname="message">提示信息</param>publicstaticDialogResultShowTips(stringmessage){returnMessageBox.Show(message,"提示信息",MessageBoxButtons. 阅读全文
摘要:
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 阅读全文
摘要:
本文转载: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/ 阅读全文
摘要:
此文章写的是相当的好。http://www.cnblogs.com/huyong/archive/2010/12/18/1910253.htmlwuhuacong(伍华聪)): http://www.cnblogs.com/wuhuacong/archive/2011/11/24/2262068.h... 阅读全文
摘要:
本文摘抄:http://greatverve.cnblogs.com/archive/2012/02/08/propergrid-Dictionary.htmlPropertyGrid直接绑定Dictionary显示的是数据类型,若要显示为Text|Value需要处理一下。直接绑定显示如下:我们希望显示如下:private void Form6_Load(object sender, EventArgs e){ Dictionary<int, string> dicTest = new Dictionary<int, string>(); dicTest.Add(0, 阅读全文