Time of Update: 2018-12-07
文章目錄 UNICODE編譯設定:Unicode :寬位元組字元集開發過程: 一、匹配Unicode字元的Regex 原文:http://blog.sunmast.com/Sunmast/archive/2004/07/30/799.aspx
Time of Update: 2018-12-07
需要在DataGridView的2個事件中寫代碼!下面的代碼把第4列設定為密碼列(顯示為*號): /// <summary> /// 儲存格顯示格式事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dat
Time of Update: 2018-12-07
概要在 Microsoft Office InfoPath 2003中,不能直接將表單中的域綁定到輔助資料來源中的資料。但是,本文介紹如何以編程方式轉換輔助資料來源中的資料,然後在運行時將轉換後的資料傳送到主要資料源中的域。設計表單1.在 InfoPath 中啟動一個新的空白表單。2.切換到“資料來源”工作窗格。要向您的表單中添加域,請按照下列步驟操作:a. 按右鍵“myFields”組,然後單擊“屬性”。此時出現“域或組屬性”對話方塊。b. 將組名稱更改為
Time of Update: 2018-12-07
static string Reverse1(string original) ...{ char[] arr = original.ToCharArray(); Array.Reverse(arr); return new string(arr); } static string Revease21(string original
Time of Update: 2018-12-07
單線程程式避免介面假死:1) 使用 void Application.DoEvents(); 處理當前在訊息佇列中的所有 Windows 訊息。2) 使用 void Control.Refresh(); 強制控制項使其工作區無效並立即重繪自己和任何子控制項。Control 可以是 Form,也可以是 Form 上控制項。3) void Control.Update(); 使控制項重繪其工作區域內的無效地區。Control 只能是 Form
Time of Update: 2018-12-07
轉:http://www.codeproject.com/csharp/importactivex.aspDownload source files - 62.4 Kb IntroductionWe often need to reuse and extend an ActiveX control developed by other vendors in real .NET applications. There are articles and user documents on how
Time of Update: 2018-12-07
這幾天在做一個把大量Infopath產生的XML資料,進行處理的程式,我用了MDI子表單,每個表單包含了各自的功能,如,遍曆目錄及其子目錄檢查檔案類型並自動產生Sql語句併入庫、對Infopath資料的自動檢查、對資料中的某些域的替換及更改處理、對資料檔案的合并、拆分、剔除記錄、統計資料、 對資料自動匯入資料庫。。。等等。 當我開啟一個子表單,進行某項操作時,如果字表單中有迴圈操作時。如果運行中我關閉子表單,發現表單雖然關閉了,但子表單中的迴圈程式卻沒有退出,一直在
Time of Update: 2018-12-07
此樣本闡釋如何使用 XslTransform 類將可延伸樣式表語言轉換 (XSLT) 檔案應用於 XML 文檔。該類實現 WWW 聯合會 (W3C) 的 W3C XSL 轉換 (XSLT) 1.0 版規範。(有關更一步的參考資訊,您可以參閱 W3C 的 W3C 可延伸樣式表語言 (XSL) (XSL) 1.0 版規範。) VB TransformXML.aspx[運行樣本] | [查看原始碼] XSLT 是一種基於 XML 的語言,用於將一個 XML 文檔轉換為另一個 XML 文檔,或將一個
Time of Update: 2018-12-07
豐富的使用者體驗是所有互動式應用程式的主要方面。需要使用者互動的軟體必須儘可能快地響應使用者的活動。與此同時,應用程式必須能夠處理資料以便將結果顯示給使用者。在應用程式中使用多個線程可以將使用者介面 (UI) 執行的任務與後台執行的任務分開。通過此方式組織任務,可以由 UI 響應使用者輸入,同時由後台進程進行資料處理。建立輔助線程應用程式可以建立一個或多個線程以執行方法。建立輔助(或從屬)線程的第一個步驟是建立 ThreadStart 代理,指定要由該線程執行的方法。然後將
Time of Update: 2018-12-07
namespace ConsoleApplication1{ class Program { static void Main(string[] args) { XmlDocument doc = new XmlDocument();//建立文檔對象 try { doc.Load("../../myOrder.xml");
Time of Update: 2018-12-07
轉:http://www.codeproject.com/cs/miscctrl/htmlwincontrol.aspDownload source files - 7.5 Kb Download demo project - 14.5 Kb IntroductionThis article intends to show a very simple way to add any Windows Form control to any HTML page, whether it is
Time of Update: 2018-12-07
現在,許多應用程式利用
Time of Update: 2018-12-07
250定律 拉德認為:每一位顧客身後,大體有250名親朋好友。如果您贏得了一位顧客的好感,就意味著贏得了250個人的好感;反之,如果你得罪了一名顧客,也就意味著得罪了250 名顧客。 評論:在你的網站訪客中,一個訪客可能可以帶來一群訪客,任何網站都有起步和發展的過程,這個過程中此定律尤其重要。 克理斯說:認真對待每一個訪客,如果一不小心遇上有感染力的訪客,那是很棒的一件事。 達維多定律
Time of Update: 2018-12-07
呵呵,很簡單,先定義一個表單變數; 如:frmDirTool() DirTool = null; 然後再從產生這個表單的點擊事件中寫入如下代碼:呵呵,這個方法,就不用從關閉子表單事件中寫東西了 if(DirTool == null) //如果還沒有字表單時,則建立新的子表單 { DirTool = new frmDirTool(); DirTool.MdiParent = this; DirTool.Show();
Time of Update: 2018-12-07
Asp.net提供了三個功能強大的清單控制項:DataGrid、DataList和Repeater控制項,但其中只有DataGrid控制項提供分頁功能。相對DataGrid,DataList和Repeater控制項具有更高的樣式自訂性,所以很多時候我們喜歡使用DataList或Repeater控制項來顯示資料。 實現DataList或Repeater控制項的分頁顯示有幾種方法: 1、寫一個方法或預存程序,根據傳入的頁數返回需要顯示的資料表(DataTable)
Time of Update: 2018-12-07
轉:http://blogs.msdn.com/infopath/archive/2005/06/17/430347.aspxRules are a quick way to add dynamic functionality to a form, so a lot of programmers choose to use rules even when they know how to write the code to do the same thing. However,
Time of Update: 2018-12-07
文章目錄 Introduction Background What Exactly the DLLs and OCX files are? ActiveX Components Runtime Callable Wrappers COM Callable Wrappers 轉:Using COM Components in .NET Introduction This Article will help you in
Time of Update: 2018-12-07
圖例: Unicode 3.1 Unicode 1.0 Unicode 3.2 Unicode 1.1 Unicode 4.0 Unicode 2.0 Unicode 4.1 Unicode 2.1 未使用 Unicode 3.0 不作編碼 Unicode 編碼錶 0000-0FFF8000-8FFF10000-10FFF20000-20FFF28000-28FFF 1000-1FFF9000-9FFF 21000-21FFF29000-29FFF 2000-2FFFA000-AFFF 2200
Time of Update: 2018-12-07
轉:http://www.cnblogs.com/tuyile006/archive/2006/12/19/596969.html用Regex實現識別單詞:using System.Text.RegularExpressions;//解析 private void button1_Click(object sender, System.EventArgs e) { //字串不可為空 if(t_scr.Text=="") { MessageBox.Show("請輸入一串字元!
Time of Update: 2018-12-07
程式碼Create PROCEDURE pageTest --用於翻頁的測試--需要把排序欄位放在第一列(@FirstID nvarchar(20)=null, --當前頁面裡的第一條記錄的排序欄位的值@LastID nvarchar(20)=null, --當前頁 面裡的最後一條記錄的排序欄位的值@isNext bit=null, --true 1 :下一頁;false 0:上一頁@allCount int output, --返回總記錄數@pageSize int output,