无痕客

落花无情,流水无痕……

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2009年12月7日

摘要: C#编写最小化时隐藏为任务栏图标的 Window appllication.     1.设置WinForm窗体属性showinTask=false     2.加notifyicon控件notifyIcon1,为控件notifyIcon1的属性Icon添加一个icon图标。     3.添加窗体最小化事件(首先需要添加事件引用): this.SizeChanged += new System.E... 阅读全文
posted @ 2009-12-07 21:38 无痕客 阅读(2016) 评论(0) 推荐(0) 编辑

摘要: WebService安全访问(资料收集) 阅读全文
posted @ 2009-12-07 21:19 无痕客 阅读(10553) 评论(0) 推荐(2) 编辑

摘要: 今天在阅读一段开源软件的代码时,看到yield return,之前没见过更没用过,感觉下面的代码很简洁。 public IEnumerable<ILayer> FindLayer(string layername) { foreach (ILayer l in Layers) if (l.LayerName.Contains(layername)) yield return l; } ... 阅读全文
posted @ 2009-12-07 15:17 无痕客 阅读(667) 评论(0) 推荐(0) 编辑

摘要: 开发环境:Windows XPMicrosoft Visual Studio 2008Office 2003最近开发从数据库导出数据到Excel的功能,需要在C#中执行对Excel的操作。在网上搜索到这类的资料很多,但实际用到自己的代码里总不那么尽如人意。经过多次试验,终于能按照自己理想中的方式执行完毕。现补充自己在实践中遇到的情况以供参考。示例如下:一、要在C#中操作Excel,必须使用命名空间... 阅读全文
posted @ 2009-12-07 14:13 无痕客 阅读(2985) 评论(0) 推荐(0) 编辑

摘要: From ESRI:The client browser will then download the SWF file. After this point, the user might not connect back to this Web server at all but rather directly to the servers containing map content and ... 阅读全文
posted @ 2009-12-07 09:39 无痕客 阅读(2367) 评论(0) 推荐(0) 编辑