随笔分类 -  CSharp code

C#代码学习
摘要:/// <summary> /// 中国农历日子(不含年月) Substring方法从零计算起 /// 2012-02-21 今天是农历三十,发现万年历出错,改正过来。 /// 涂聚文 缔友计算机信息技术有限公司 捷为工作室 /// </summary> /// <param name="iDay">数字日子</param> /// <returns>农历日子</returns> public string FormatLunarDay(ushort iDay) { ... 阅读全文
posted @ 2012-02-21 10:36 ®Geovin Du Dream Park™ 阅读(623) 评论(0) 推荐(1)
摘要:string schLocation = "Conference Room 涂聚文约会你"; string schSubject = "Business visit discussion约会"; string schDescription = "Schedule description明天到深圳市福田區車公廟冶金大大廈約會"; System.DateTime schBeginDate = Convert.ToDateTime("2/3/2012 10:00:00 PM"); ... 阅读全文
posted @ 2012-02-03 20:39 ®Geovin Du Dream Park™ 阅读(728) 评论(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.Security; 10 using System.Reflection; 11 using System.Security.Permissions... 阅读全文
posted @ 2012-01-14 15:40 ®Geovin Du Dream Park™ 阅读(831) 评论(0) 推荐(0)
摘要:xml file:<?xml version="1.0" encoding="utf-8"?><Root> <UserInfo> <Login Name="geovindu"> <Pass>l17pi6MYm2g=</Pass> </Login> <Login Name="涂聚文祝你龙年大悦http://www.dusystem.com/Happynewyear.html"> <Pass>4IGT6o/qA4 阅读全文
posted @ 2012-01-11 20:22 ®Geovin Du Dream Park™ 阅读(532) 评论(0) 推荐(0)
摘要:文本文件中的內容格式為:(其中問題,誰能否解決大於15M的文本文件能快速讀到DataTable中)俚 rustic俚语 slang哩 mile哩 onomat哩数 milage逦 winding理 logic理 reason理 science理八郎 Rihachiro理兵卫 Rihee理兵卫 Rihei理财 financing理财 portfolio理查 Richard理查德 Richard理查德冰川 Richardsbreen理查顿 Richardton理查多 Richardo理查多维奇 Richardovich理查姆斯 Richarms理查森 Richardson理查特 Richart理查 阅读全文
posted @ 2011-11-24 21:12 ®Geovin Du Dream Park™ 阅读(1586) 评论(0) 推荐(0)
摘要:/// <summary> /// DataGridView自定义添加DateTimePicker控件日期列 参考http://msdn.microsoft.com/en-us/library/7tas5c80.aspx /// 涂聚文 缔友计算机信息技术有限公司 /// 2011-11-16 捷为工作室 /// </summary> public class GeovinDuCalendarColumn : DataGridViewColumn { /// <summary> /// /// </summa... 阅读全文
posted @ 2011-11-16 12:54 ®Geovin Du Dream Park™ 阅读(4378) 评论(2) 推荐(0)
摘要://打印文檔 object nullobj = Missing.Value; //aDoc = wordApp.Documents.Open(ref file, // ref nullobj, ref nullobj, ref nullobj, // ref nullobj, ref nullobj, ref nullobj, ... 阅读全文
posted @ 2011-11-04 15:52 ®Geovin Du Dream Park™ 阅读(568) 评论(0) 推荐(0)
摘要://http://office09.googlecode.com/svn-history/r491/trunk/OfficeInCloudWord2007/WordLocalView.cs// http://office09.googlecode.com/svn/trunk/using System;using System.Collections;using System.Linq;using System.Text;using System.Globalization;using LocalView;using DataType;using Google.GData.Client;usin 阅读全文
posted @ 2011-11-04 11:49 ®Geovin Du Dream Park™ 阅读(440) 评论(0) 推荐(0)
摘要:1.创建一个模板的Word文档Doc1.dot 内容为:To: <Name>Sub:<Subject>Website is ok geovindu 涂聚文好样的 work.CEo <Datetime>Thanks.2.程序操作代码为: /// <summary> /// 簡單操作Word模板文件 /// 塗聚文 2011-11-03 /// 缔友计算机信息技术有限公司 /// </summary> /// <param name="sender"></param> /// <param 阅读全文
posted @ 2011-11-03 20:26 ®Geovin Du Dream Park™ 阅读(2699) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO;namespace WindowsFormsStyle{ public partial class LoginForm : Form { protected string fileName ... 阅读全文
posted @ 2011-11-03 11:33 ®Geovin Du Dream Park™ 阅读(575) 评论(0) 推荐(0)
摘要:/// <summary> /// 塗聚文 2011-10-24 (參考相關網絡和書藉資料) /// 締友計算機信息技術有限公司 ///C# Winform 簡單分頁: 首頁,上一頁,下一頁,末頁 /// </summary> public partial class FormDataGridViewPage : Form { /// <summary> /// 每页显示行数 /// </summary> int pageSize = 0; /// <summary> ... 阅读全文
posted @ 2011-10-24 19:38 ®Geovin Du Dream Park™ 阅读(1279) 评论(0) 推荐(0)
摘要:/// <summary> /// 遍曆清除指定的控件 /// 塗聚文 2011-10-18 /// 締友計算機信息技術有限公司 /// </summary> /// <param name="con"></param> public void ClearControl(Control.ControlCollection con) { foreach (Control C in con) { if (C.GetType().... 阅读全文
posted @ 2011-10-19 12:44 ®Geovin Du Dream Park™ 阅读(532) 评论(0) 推荐(0)
摘要:from http://www.codeproject.com/KB/office/DataGridViewCopyPaste.aspx /// <summary> /// 分行顯示顏色 /// 塗聚文 2011-10-13 /// 締友計算機信息技術有限公司 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dataGridView1_RowsAdde 阅读全文
posted @ 2011-10-13 12:59 ®Geovin Du Dream Park™ 阅读(762) 评论(0) 推荐(0)
摘要:/// <summary> /// datagridview to a datatable /// geovindu 涂聚文 /// </summary> /// <param name="dataGridView"></param> /// <returns></returns> private DataSet DataGridViewToDatSet(DataGridView dataGridView) { DataSet ds = new DataSet(); ... 阅读全文
posted @ 2011-09-29 17:41 ®Geovin Du Dream Park™ 阅读(561) 评论(0) 推荐(0)
摘要:/// <summary> ///連接數據庫字符串 ///塗聚文 2011-09-25 ///締友計算機信息技術有限公司 /// </summary> private static string connectionString; /// <summary> /// /// </summary> static DBHelper() { DataSetingConfig dbconnection = ne... 阅读全文
posted @ 2011-09-25 18:03 ®Geovin Du Dream Park™ 阅读(503) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Net;namespace WindowsTreeViewDemo{ /// <summary> /// 2011-06-25 /// 涂聚文 QQ天气预报 /// </summary> public partial class Fo 阅读全文
posted @ 2011-06-25 12:25 ®Geovin Du Dream Park™ 阅读(769) 评论(0) 推荐(0)
摘要:/// <summary> /// 2011-06-16 塗聚文 /// </summary> public partial class QQweather : System.Web.UI.Page { public string selectcity = "1"; string strUrl = "http://weather.qq.com/inc/ss1.htm"; /// <summary> /// /// </summary> /// <param name="sender" 阅读全文
posted @ 2011-06-16 19:17 ®Geovin Du Dream Park™ 阅读(388) 评论(0) 推荐(0)
摘要:http://www.syncfusion.com/faq/windowsforms/faq_c91c.aspxhttp://stackoverflow.com/questions/4527023/get-text-of-the-clicked-node-treeview-c-winformshttp://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.selectednode.aspx /// <summary> /// 点击事件 /// </summary> /// <param n 阅读全文
posted @ 2011-06-16 11:44 ®Geovin Du Dream Park™ 阅读(940) 评论(0) 推荐(0)
摘要:/// <summary> /// 2011-05-30 Geovin Du 逻辑运算符 /// 涂聚文 缔友计算机信息技术有限公司 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { //1 & byte oddMask = 1; byte someByte = 阅读全文
posted @ 2011-05-30 15:37 ®Geovin Du Dream Park™ 阅读(497) 评论(0) 推荐(0)
摘要:/// /// 涂聚文 geovindu.blog.163.com /// www.dusystem.com www.dupcit.com /// 2011-05-28 /// /// /// ... 阅读全文
posted @ 2011-05-28 10:45 ®Geovin Du Dream Park™ 阅读(973) 评论(0) 推荐(0)