随笔分类 -  CSharp code

C#代码学习
摘要:1 /// <summary> 2 /// 選擇的節點 3 /// 塗聚文 20121116 4 /// 捷為工作室 5 /// 6 /// </summary> 7 /// <param name="sender"></param> 8 /// <param name="e"></param> 9 private void treeView1_AfterCheck(object sender, TreeViewEventArgs e) 10 ... 阅读全文
posted @ 2012-11-16 17:51 ®Geovin Du Dream Park™ 阅读(757) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 using AcroPDFLib;//引用COM組件Adobe Acrobat Browser Control Type Library 1.0 //http://www.ad... 阅读全文
posted @ 2012-10-23 17:25 ®Geovin Du Dream Park™ 阅读(1070) 评论(2) 推荐(0)
摘要:1 /// <summary> 2 ///參考互網資源 3 /// 中国萬年曆靜態查詢節日操作基類 4 /// 20120908 修改 塗聚文 5 /// 20121010 修改 塗聚文 6 /// 締友計算機信息技術有限公司 7 /// 捷為工作室 8 /// </summary> 9 public static class ChineseDate 10 { 11 /// <summary> 12 /// 中國農曆 13 /// </summary> 14... 阅读全文
posted @ 2012-10-10 11:55 ®Geovin Du Dream Park™ 阅读(720) 评论(0) 推荐(0)
摘要:1 /* 2 下載: 3 //Microsoft Windows XP Tablet PC Edition 2005 Recognizer Pack http://www.microsoft.com/zh-cn/download/details.aspx?id=1601 4 //Microsoft Windows XP Tablet PC Edition Software Development Kit 1.7 http://www.microsoft.com/en-us/download/details.aspx?id=20039 5 * Microsoft Speech P... 阅读全文
posted @ 2012-09-14 17:04 ®Geovin Du Dream Park™ 阅读(1071) 评论(0) 推荐(0)
摘要:1 using Word = Microsoft.Office.Interop.Word; //12.0 word 2007 2 using Excel = Microsoft.Office.Interop.Excel;//12.0 excel 2007 3 4 5 /// <summary> 6 /// EXCEL文檔轉成PDF文檔 7 /// 參考 http://msdn.microsoft.com/en-us/library/bb256835%28v=office.12%29.aspx 8 /// Open XML SDK 2.0... 阅读全文
posted @ 2012-09-07 15:40 ®Geovin Du Dream Park™ 阅读(798) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows; 6 using System.Windows.Forms; 7 using System.Data; 8 9 namespace Geovin.Du.FormOperatingBase10 {11 /// <summary>12 /// ComboBox 綁定值或索引值13 /// 2011090914 /// 塗聚文 締友計... 阅读全文
posted @ 2012-09-06 11:15 ®Geovin Du Dream Park™ 阅读(1464) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 using System.Data.SqlClient; 10 using System.Data.Sql; 11 using Microsoft.SqlServer.Mana... 阅读全文
posted @ 2012-08-14 10:46 ®Geovin Du Dream Park™ 阅读(512) 评论(1) 推荐(0)
摘要:1 //DataTable 得到標題 2 //締友計算機技術有限公司 塗聚文 3 //foreach (DataColumn column in dt.Columns) 4 //{ 5 // selectDt.Columns.Add(column.ColumnName, column.DataType); 6 //} 7 ... 阅读全文
posted @ 2012-08-09 16:58 ®Geovin Du Dream Park™ 阅读(386) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 using SKYPE4COMLib; 10 using System.Collections; 11 12 namespace Skype 13 { 14 /// ... 阅读全文
posted @ 2012-08-03 11:25 ®Geovin Du Dream Park™ 阅读(724) 评论(0) 推荐(0)
摘要:1 //20120803 Geovin Du 2 //塗聚文 締友計算機信息技術有限公司 3 DataTable dt = new DataTable(); 4 dt=agreementMonthlySalaryListBLL.SelectImportExceltoDataGridView(fileUrl, sheet).Copy(); 5 6 if ((dt != null) && (dt.Rows != null) && (dt.Rows.Count > 0)... 阅读全文
posted @ 2012-08-02 18:26 ®Geovin Du Dream Park™ 阅读(451) 评论(0) 推荐(0)
摘要:1 /// <summary> 2 /// 3 /// 塗聚文 4 /// 20120803 5 /// Geovin Du 6 ///找到EXCEL的工作表名称 要考慮打開的文件的進程問題 7 /// </summary> 8 /// <param name="filename"></param> 9 /// <param name="comboBox2"></param>10 /// <returns></return... 阅读全文
posted @ 2012-08-02 14:48 ®Geovin Du Dream Park™ 阅读(714) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI; 6 using System.Web.UI.WebControls; 7 using System.Data; 8 using SKYPE4COMLib; //下載地址:http://en.sourceforge.jp/projects/sfnet_skype4mp/downloads/Skype4MP/obj/Release/Interop.SK... 阅读全文
posted @ 2012-07-25 17:43 ®Geovin Du Dream Park™ 阅读(532) 评论(0) 推荐(0)
摘要:/// <summary> /// 自定格式設置打印 /// 塗聚文 /// 締友計算機信息技術有限公司 /// Geovin Du /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) { tr... 阅读全文
posted @ 2012-07-11 12:01 ®Geovin Du Dream Park™ 阅读(679) 评论(0) 推荐(0)
摘要:using Microsoft.Office.Interop.Word; //ver 12.0 /// <summary> /// 自動頁碼,頁眉頁腳 /// 20120603 塗聚文 /// Geovin Du /// </summary> /// <param name="pPageHeader">頁眉自定義文字</param> /// <param name="pPageFoot">頁腳自定義文字</param> public void SetPageHeaderAndFoot 阅读全文
posted @ 2012-06-03 20:16 ®Geovin Du Dream Park™ 阅读(1981) 评论(0) 推荐(0)
摘要:/* //http://sourceforge.net/projects/itextsharp/ * http://stackoverflow.com/questions/8713963/itextsharp-pdf-resize-document-to-accomodate-a-large-ima 阅读全文
posted @ 2012-06-03 18:25 ®Geovin Du Dream Park™ 阅读(1190) 评论(0) 推荐(0)
摘要:/* *http://www.koders.com/csharp/fid7241B3C8598C20BA18652B5BB5C19D220988E2D4.aspx?s=file * http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx * http://www.eggheadcafe.com/tutorials/aspnet/9ce6c242-c14c-4969-9251-af95e4cf320f/zip--unzip-folders-and-f.aspx * http://www.eggheadcafe.com/com 阅读全文
posted @ 2012-05-30 19:49 ®Geovin Du Dream Park™ 阅读(1690) 评论(0) 推荐(1)
摘要:/* 參考來源: http://reflector.webtropy.com/default.aspx/4@0/4@0/untmp/DEVDIV_TFS/Dev10/Releases/RTMRel/ndp/fx/src/WinForms/Managed/System/WinForms/InputLanguage@cs/1305376/InputLanguage@cshttp://msdn.microsoft.com/en-us/library/ms171548.aspxhttp://msdn.microsoft.com/en-us/library/syy068tk.aspxhttp://go4 阅读全文
posted @ 2012-05-22 11:13 ®Geovin Du Dream Park™ 阅读(2106) 评论(1) 推荐(0)
摘要:using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Globalization;using System.Text;usi 阅读全文
posted @ 2012-05-10 17:29 ®Geovin Du Dream Park™ 阅读(907) 评论(0) 推荐(0)
摘要:/// <summary> /// 塗聚文 /// 2012-04-14 /// </summary> /// <param name="table"></param> /// <returns></returns> static DataTable GetDecTable(DataTable table) { if (!object.Equals(table, null))// { // foreach(D... 阅读全文
posted @ 2012-04-14 18:03 ®Geovin Du Dream Park™ 阅读(1119) 评论(0) 推荐(1)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Drawing;using System.Drawing.Drawing2D;using System.Windows.Forms;using System.Reflection;using System.Runtime.InteropServices;using System.ComponentModel;namespace TextboxsStyleLineControlLibrary{ /// ... 阅读全文
posted @ 2012-03-27 16:19 ®Geovin Du Dream Park™ 阅读(1386) 评论(0) 推荐(0)