上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 42 下一页
摘要: 1.自动拖放只支持DragDropEffects.Move近日需要程序在运行时将TreeView节点拖放到RichTextBox。发现RichTextBox没有DragOver等事件,但有EnableAutoDragDrop属性,于是设置为true。运行程序,可以从外部拖放一些文本、图片到RichTextBox,但是从TreeView拖放节点到RichTextBox时,老是显示类似禁止的那个小图标,无法拖放。难道RichTextBox对于内部拖放没有效果?以下是TreeView点击开始拖放的代码private void treeView1_MouseDown(object sender, Mo 阅读全文
posted @ 2012-05-07 12:11 生命体验之kevin-Y 阅读(2227) 评论(1) 推荐(1) 编辑
摘要: 功能:下载文件。方式:调用Remoting方法,得到整个文件的字节数组,写到本地文件。代码:public static bool DownloadFromTestPool(string pFileName, string pLocalFullPath){ bool isOk = true; System.IO.FileStream write = null; try { System.IO.FileInfo file = new FileInfo(pLocalFullPath); if (!file.Directory.Exists) ... 阅读全文
posted @ 2011-12-01 23:15 生命体验之kevin-Y 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 找了一段生成ClickOne的快捷方式的生成代码,晚上回去试试能否可用。 阅读全文
posted @ 2011-09-08 10:23 生命体验之kevin-Y 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 我不希望程序员各自编译一份dll来发布,希望由统一的一台机器自动获取源代码并自动生成发布的文件。原来这叫持续集成。这是园内的文章。这里收藏一下。http://www.cnblogs.com/cnblogsfans/archive/2008/04/24/1169689.htmlhttp://www.cnblogs.com/greatqn/archive/2008/08/05/1261298.html 阅读全文
posted @ 2011-06-10 12:01 生命体验之kevin-Y 阅读(230) 评论(0) 推荐(0) 编辑
摘要: // 事件访问器的定义int eventCount=0; public event EventHandler NumberChanged { add { eventCount++; numberChanged = value; } remove { eventCount--; numberChanged -= value; } }或取委托数组public event EventHandler NumberChanged;//某个方法内Delegate[] delegates = NumberChanged.GetInvocationList(); 阅读全文
posted @ 2011-05-20 17:49 生命体验之kevin-Y 阅读(160) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 42 下一页