Time of Update: 2017-02-28
預存程序 CREATE PROC P_TEST@Name VARCHAR(20),@Rowcount INT OUTPUTASBEGIN SELECT * FROM T_Customer WHERE NAME=@Name SET @Rowcount=@@ROWCOUNTENDGO----------------------------------------------------------------------
Time of Update: 2017-02-28
列印 在windows應用程式中文檔的列印是一項非常重要的功能,在以前一直是一個非常複雜的工作,Microsoft .net Framework的打印功能都以組件的方式提供,為程式員提供了很大的方便,但是這幾個組件的使用還是很複雜的,有必要解釋一下。列印操作通常包括以下四個功能1 列印設定 設定印表機的一些參數比如更改印表機驅動程式等2 版面設定 設定頁面大小紙張類型等3 預覽列印 類似於word中的預覽列印4 列印
Time of Update: 2017-02-28
程式|資訊管理 using System;using System.Collections;using System.IO;namespace SEI.DL88250.SourceCodes.CSharp{ public interface IStudent { // Properties string ID { get; set; }
Time of Update: 2017-02-28
using System;namespace SEI.DL88250.SourceCodes.CSharp{ public delegate void Calculation(decimal val1,
Time of Update: 2017-02-28
一般軟體都要輸入序號(SN),而大家平時用的最多的恐怕是盜版軟體,通常盜版軟體的序號(SN)都儲存成:XXXXX-XXXXX-XXXX-XXXX的形式。 而軟體輸入序號的地方通常都是幾個文字框(TextBox)組成。一個個的將XXXXX複製到文字框將非常麻煩。於是SN快速輸入工具便由此產生了。 當然這些都和我的編寫這個程式的原因無關。我編寫這個程式的原因純粹是因為有個網友和他舅舅打賭說要編寫個程式,而他舅舅就是要他編寫這個程式,但可惜我的這位網友才是個編程初學者(比我更菜的菜鳥),當然完成不
Time of Update: 2017-02-28
window|安全|編程|多線程
Time of Update: 2017-02-28
.NET FrameWork 1.1之前版本根本不支援多媒體,.NET FrameWork 2.0也只是對多媒體進行了最簡單最有限的支援,如果在我們的.NET程式中需要播放多媒體檔案,通常只有通過互操作引入Activex控制項來播放音頻/視頻。在網上找了N久關於C#播放rm視頻的文章,終於有了一點結果。為了方便後來者,在這裡給出C#中播放rm的簡單步驟:(1)安裝了RealOne或RealPlayer
Time of Update: 2017-02-28
隨機 using System;using System.Collections.Generic;using System.Text;using System.Threading;using System.Security.Cryptography;namespace randnumber...{ class randnumber ...{ &
Time of Update: 2017-02-28
加密|解密|演算法 /*************************字串密碼編譯演算法***********************/public string EncryptString(string str) { char[] Base64Code=new char[]{'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q',
Time of Update: 2017-02-28
載入
Time of Update: 2017-02-28
資料 以下是引用片段:Form1.cs using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Xml; namespace hellojoysou { /// <summary> ///
Time of Update: 2017-02-28
string str1 =Process.GetCurrentProcess().MainModule.FileName;//可獲得當前執行的exe的檔案名稱。 string str2=Environment.CurrentDirectory;//擷取和設定目前的目錄(即該進程從中啟動的目錄)的完全限定路徑。//備忘
Time of Update: 2017-02-28
測試代碼: http://www.cnblogs.com/Files/dyj057/Gms%20Modem簡訊收發組件.rar簡訊的部署方案很多種,我們現在介紹3種主要的部署方案。客戶可以在這幾個方案中選擇一個來實施,完成簡訊的應用。GMS Modem的部署購買硬體裝置 GMS
Time of Update: 2017-02-28
在VS 2005中設定和讀取設定檔已經變的很簡單了,而且是強型別的,讀取的值可以直接賦值給相應的變數,無需強制轉換。例如:DateTime userDateTime1 = Properties.Settings.Default.userDateTime1; 真是方便了很多。但是你有沒有發現,使用 Properties.Settings.Default.Save() 儲存了設定後,Application 範圍的設定為什麼沒有儲存成功,User 範圍的設定的變化為什麼沒有體現到
Time of Update: 2017-02-28
線上 //這是一個webserviceprivate AppUpdate.UpdateServ UpdateSvr; private void button1_Click(object sender, System.EventArgs e) { if(LinkWebServices()==true) {
Time of Update: 2017-02-28
iis|網站 using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Windows.Forms.Design;using System.DirectoryServices;using System.Reflection;using
Time of Update: 2017-02-28
網路 using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;//查詢網路上的電腦IP和使用者需要引用using System.Data;using System.IO;using System.Net;using System.Net.Sockets;using System.
Time of Update: 2017-02-28
datagrid 寫winForm的程式,難免要用DataGrid,自然也就需要設定列格式啊,標題之類的! 但是經常欄位標題設定後沒反應,好噁心!
Time of Update: 2017-02-28
攻擊|區別
Time of Update: 2017-02-28
visual|註冊表 在《用Visual C#讀取註冊資訊》的文中,已經介紹了用 Visual C#來讀取註冊表中的註冊資訊。本文就來介紹用Visual C#對註冊表的另外一個操作,這也是一個具有破壞性的操作過程--刪除註冊資訊。 在上文中已經知道,由於Visual C#本身沒有帶類庫,他對註冊表的處理過程是通過調用.Net FrameWork SDK中的名稱空間Microsoft.Win32中封裝的二個類來實現的。這二個類就是Registry類、