Fork me on GitHub
摘要: 进制转换 阅读全文
posted @ 2012-07-11 15:32 TimGong 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 在页头中添加如下脚本块即可: $(document).ready(function () { $("a").each(function () { var textValue = $(this).html(); if (textValue == "XX概况" || textValue == "服务导航... 阅读全文
posted @ 2012-06-21 09:54 TimGong 阅读(23318) 评论(1) 推荐(0) 编辑
摘要: Ajax Control Toolkit简介Ajax Control Toolkit是一个丰富的控件集,你可以使用它来创建响应度高、互操作性强的带有Ajax特性的Web应用程序。Ajax Control Toolkit包含了40多种控件,包括AutoComplete、CollapsiblePanel、ColorPicker、MaskedEdit、Calendar、Accordion、HTML Editor Extender和Watermark等控件。获取Ajax Control Toolkit我们可以通过以下几种方式获取:1.对于Visual Studio 2008的用户,我们可以去Ajax 阅读全文
posted @ 2012-06-07 13:58 TimGong 阅读(3510) 评论(0) 推荐(1) 编辑
摘要: operatoroperator 关键字用于在类或结构声明中声明运算符。运算符声明可以采用下列四种形式之一:public static result-type operator unary-operator ( op-type operand )public static result-type operator binary-operator ( op-type operand, op-type2 operand2 )public static implicit operator conv-type-out ( conv-type-in operand )public st... 阅读全文
posted @ 2012-05-22 15:12 TimGong 阅读(596) 评论(0) 推荐(0) 编辑
摘要: Mercurial简介Mercurial是一款非常优秀的分布式版本控制系统(DCVS),具有高效率、跨平台、可扩展、使用简便且开源等优点,是目前最为流行的版本控制工具之一。Mercurial英文意为水银,所以常被缩写为Hg。在使用Mercurial之前,我曾经使用过VSS(已停止更新)和SVN,也尝试过微软的TFS,它们都不是分布式版本控制系统,换句话说,就是当源码服务器故障或网络不通时,你将无法提交你所做的本地修改。这也是之前的版本控制工具与Mercurial最大的不同,目前与Mercurial类似的工具还有Git,但由于对Windows系统的支持做得不是很人性化,我个人不太喜欢。最开始接触 阅读全文
posted @ 2012-05-18 10:39 TimGong 阅读(26760) 评论(2) 推荐(8) 编辑
摘要: 1.设置DataGridView控件的EditMode属性为EditOnEnter如:DataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter2.添加DataGridView的CellClick事件,逻辑如下:private void dgvColumnMap_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex >= 0 && e.RowIndex ... 阅读全文
posted @ 2012-04-17 10:17 TimGong 阅读(2951) 评论(0) 推荐(0) 编辑
摘要: 公司的项目中需要抽取Word文件的正文,在最初的开发过程中,我使用的是微软的Office组件来抽取Word文本内容。这种方法对于普通的WORD文档简便易行,网上也有很多现成的Word操作类可供使用,但对于包含宏脚本的Word文件,这种方法就无能为力了,尤其是对于那些错误的(个人认为是宏病毒)脚本,更显得苍白无力,在使用COM组件打开文档时就弹出了错误提示。正在无奈之时,想到了曾经用过的WPS也能处理Word文档,测试后效果很好,所有文档几乎都能顺利抽取(个人版本的WPS不含宏操作功能,有时候东西越简单可能越好用,支持国货!!!)。 WinForm版本的程序在这种情形下运行正常,但嵌入到W... 阅读全文
posted @ 2011-09-05 01:43 TimGong 阅读(4299) 评论(0) 推荐(0) 编辑
摘要: [代码]类内容:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--namespaceJd.RestoreNotify.Data{publicstaticclassExcelHelper{///<summary>//////</sum... 阅读全文
posted @ 2010-03-19 09:08 TimGong 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Text.Regul... 阅读全文
posted @ 2010-03-10 18:55 TimGong 阅读(849) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Xml;usingSystem.IO;usingSys... 阅读全文
posted @ 2010-03-02 15:37 TimGong 阅读(456) 评论(2) 推荐(1) 编辑