ITeye博客

涂聚文

geovindu · 共 23 篇文章

Csharp:asp.net CheckBoxList databind

/// <summary> /// CheckBoxList數據源 /// 塗聚文 /// 20130705 /// /// </summary> private void setCheckBoxList() { DataTable dt = new DataTable(); CheckBoxList1.Items.Clear(); dt = geovindu_branchBLL.SelectGeovindu_branchNameDt(); CheckBoxList1.DataSource = dt; this.CheckBoxList1.DataTextField = "B_Name"; …

2013-07-05 19:59 · c# · 评论(0)

csharp skype send message in winform

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 SKYPE4COMLib; using System.Collections; namespace Skype { /// <summary> /// 20120804 塗聚文 /// 締友計算機信息技術有限公司 //…

2012-08-10 09:58 · c# · 评论(0)

csharp DataTable and DataGridView delete a Row

//DataTable 得到標題 //締友計算機技術有限公司 塗聚文 //foreach (DataColumn column in dt.Columns) //{ // selectDt.Columns.Add(column.ColumnName, column.DataType); //} //DataTable 移動行 delete或 Remove 可以移除,但會出現問題 塗聚文注 20120808 //foreach (System.Data.DataRow rowIndex in removeRowIndex) //{ // dt.Rows.Remove(rowIndex); //…

2012-08-10 09:56 · c# · 评论(0)

csharp DataTable and DataGridView delete a Row

//DataTable 得到標題 //締友計算機技術有限公司 塗聚文 //foreach (DataColumn column in dt.Columns) //{ // selectDt.Columns.Add(column.ColumnName, column.DataType); //} //DataTable 移動行 delete或 Remove 可以移除,但會出現問題 塗聚文注 20120808 //foreach (System.Data.DataRow rowIndex in removeRowIndex) //{ // dt.Rows.Remove(rowIndex); //…

2012-08-09 16:56 · 评论(0)

C# windowform Skype發送信息

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 SKYPE4COMLib; using System.Collections; namespace Skype { /// <summary> /// 20120804 塗聚文 /// 締友計算機信息技術有限公司 //…

2012-08-03 11:18 · 评论(0)

csharp Remove Empty rows in datatable

//20120803 Geovin Du //塗聚文 締友計算機信息技術有限公司 DataTable dt = new DataTable(); dt=agreementMonthlySalaryListBLL.SelectImportExceltoDataGridView(fileUrl, sheet).Copy(); if ((dt != null) && (dt.Rows != null) && (dt.Rows.Count > 0)) { List<System.Data.DataRow> removeRowIndex = new List<System.Data.DataRow>(…

2012-08-02 18:25 · 评论(0)

csharp read excel file get sheetName list

/// <summary> /// /// 塗聚文 /// 20120803 /// Geovin Du ///找到EXCEL的工作表名称 要考慮打開的文件的進程問題 /// </summary> /// <param name="filename"></param> /// <param name="comboBox2"></param> /// <returns></returns> public static System.Data.DataTable getSheetName(string filename, ComboBox comboBox2) { System.Data.Dat…

2012-08-02 15:07 · 评论(0)

csharp Send Skype messages from webform and winform

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using SKYPE4COMLib; //下載地址:http://en.sourceforge.jp/projects/sfnet_skype4mp/downloads/Skype4MP/obj/Release/Interop.SKYPE4COMLib.dll/ namespac…

2012-07-25 17:41 · 评论(0)

csharp customer style print

/// <summary> /// 自定格式設置打印 /// 塗聚文 /// 締友計算機信息技術有限公司 /// Geovin Du /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) { try { // printDocument1.DefaultPageSettings.Landscape = true; //橫向打印 //if (Fi…

2012-07-11 18:09 · 评论(0)

Csharp 利用ICSharpCode.SharpZipLib解壓文件

/* *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/co…

2012-05-30 19:45 · 评论(0)

C# 輸入法

/* 參考來源: 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@cs http://msdn.microsoft.com/en-us/library/ms171548.aspx http://msdn.microsoft.com/en-us/library/syy068tk.aspx http:/…

2012-05-22 11:08 · 评论(0)

Csharp Winform TextBox 樣式以一條橫線顯示

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 TextboxsStyleLineControlLibra…

2012-03-27 16:16 · 评论(0)

webform TextBox以一条横线显示 ---兼容各主流瀏覽器 .

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DefaultForm1.aspx.cs" Inherits="Rewriter.DefaultForm1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="ser…

2012-03-21 11:16 · 评论(0)

javascript UTF-8的繁体与简体转换

html code: 來源: http://www.chinese-learner.com/tools/chinese-converter.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv=…

2012-02-27 20:46 · 评论(0)

csharp 在万年历中计算显示农历日子出错

/// <summary> /// 中国农历日子(不含年月) Substring方法从零计算起 /// 2012-02-21 今天是农历三十,发现万年历出错,改正过来。 /// 涂聚文 缔友计算机信息技术有限公司 捷为工作室 /// </summary> /// <param name="iDay">数字日子</param> /// <returns>农历日子</returns> public string FormatLunarDay(ushort iDay) { string szText1 = "初十廿三";//4 string szText2 = "一二三四五六七八九十";//10 …

2012-02-21 10:35 · 评论(0)