Time of Update: 2018-12-07
<asp:DropDownList ID="DropDownList1" runat="server" onchange="SearchChange();"> <asp:ListItem Value="0">111</asp:ListItem> <asp:ListItem Value="1">222</asp:ListItem> <asp:ListItem Value="2">333</asp:
Time of Update: 2018-12-07
SetWindowPos 詳解函數名: SetWindowPos 標頭檔: winuser.h 函數原型: BOOL SetWindowPos ( HWND hWnd, //視窗控制代碼 HWND hWndInsertAfter, //排列順序的控制代碼 int X, //水平座標 int Y, //垂直座標 int cx, //寬 int cy, //高 UINT uFlags //視窗定位標識 );
Time of Update: 2018-12-07
在事件響應函數OnEnd中添加如下程式碼片段: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->function OnEnd() string szDLL, szReg, szCmd; begin szReg = WINSYSDIR ^ "regsvr32.exe"; szDLL = TARGETDIR ^ "MYDLL.
Time of Update: 2018-12-07
1. 如何建立一個可改變大小沒有標題列的表單?(How to create a form with resizing borders and no title bar?)form1.Text = string. Empty; form1.ControlBox = false;2. 如何在.NET的Windows表單上啟用XP主題集?(How to use XP Themes with Windows Forms using the .NET?)確認你的控制項中FlatStyle屬性已經修改為Sy
Time of Update: 2018-12-07
編寫過MFC ACTIVEX 的人可能遇到過Rebuild all 後不能調用Activex Control Test Container 的問題,雖然這是個小問題但是當調試比較大的工程時會遇到麻煩即不能夠DEBUG-F5,解決方案如下:Alt+F7 點擊DEBUG屬性頁面Executable for debug session 中更改實際的Activex Control Test Container 的路徑 vc安裝目錄:\Microsoft Visual
Time of Update: 2018-12-07
1.建立一個WinForm工程,預設產生了一個WinForm表單Form1。 2.引用—>添加引用—>瀏覽—>weiFenLuo.winFormsUI.Docking.dll。 3.表單內容IsMdiContainer:True。 4.工具箱—>右鍵—>選擇項—>.net組件—>瀏覽—>weiFenLuo.winFormsUI.Docking.dll—>在工具箱出現dockPanel。
Time of Update: 2018-12-07
寄存器 所要瞭解的是8個32位的寄存器,分別是eax,ebx,ecx,edx,esp,ebp,edi,esi eax-edx這四個是通用寄存器,雖然各個都有各自的用途,不過你可以用它們來做任何事!是32位的,自然有低位和高位,我們又可以通過ax,bx,cx,dx來訪問其低十六位,但高十六位是無法訪問的!比如eax=12345678h,那麼低十六位ax=5678h!而十六位的自然也有低位和高位,不過高八位是可以訪問的,如ax可以分為ah和al,看字面就知道,ah(high)高八位,
Time of Update: 2018-12-07
需要自訂Function,代碼如下: 代碼Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
using System; using System.Xml; using System.Text; using System.Net; using System.IO; using System.Collections; using System.Text.RegularExpressions; public class App { public static void Main() { string strCode; ArrayList alLinks;
Time of Update: 2018-12-07
C#開發的ActiveX因需要裝FrameWork等原因,用起來很不方便。所以想學下用VC++開發ActiveX控制項。通過多天的Baidu&Google,終於找到一篇一個簡單的ActiveX,並能通過IE讓使用者下載安裝。 先說下我的開發環境:開發工具:vc6.0作業系統:win2003IE版本:IE7.0 做開發之前,在網上查了下vc開發activeX的資料,得知vc開發ActiveX可選兩種架構,一種是ATL
Time of Update: 2018-12-07
在你的表單中添加一個Label,雙擊Label的MouseClick事件。添加如下方法: private void label1_MouseClick(object sender, MouseEventArgs e) { Label senderLabel = (Label)sender;//根據sender引用控制項。 senderLabel.Text =
Time of Update: 2018-12-07
在我們使用GridView的過程中,經常會遇到這樣對問題,我們選擇某一行進行編輯,或選擇某一行刪除或者.......時,我們需要擷取當前行的某些資訊,尤其是當前行的主鍵資訊,主鍵資訊一般不顯示在頁面,此時我們有三種方法來處理。第一種是使用DataKeyNames
Time of Update: 2018-12-07
代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->function padLeft(str, lenght){ if (str.length >= lenght) return str; else return padLeft("0" + str, lenght);}function padRight(
Time of Update: 2018-12-07
Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
[背景] 做過ActiveX控制項的朋友都知道,要想把自己做的ActiveX控制項功能放在自己的網頁上使用,那麼使用者在用戶端就必須進行本地的註冊,也就是說使用者得首先要把該ActiveX控制項(test.ocx)放在原生%system%/system32下,然後運行DOS工具裡面運行regsvr32
Time of Update: 2018-12-07
1、已知路徑,載入本地圖片到Image中 Image img = Image.FromFile("路徑"); 2、資料庫中讀取二進位圖片 string strSql = "Select Top 1 ImageContent From TT_ImageFileSave)"; Byte[] byteImage = new Byte[0]; byteImage = (Byte[])(DbHelperSQL.GetSingle(strSql)); MemoryStream
Time of Update: 2018-12-07
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public partial class Form2 : Form{ Size szStandard = new Size(); /// <summary> /// 系統建構函式 /// </summary> public Form2() {
Time of Update: 2018-12-07
AJAX Control Toolkit的發行中提供了相應的所有擴充器的源碼,這極大地方便了開發人員根據自己的需要全面深入地使用這些擴充器集合。 例如,對於ConfirmButtonExtender擴充器來說,如果想動態更改此擴充器控制項的ConfirmText屬性值,可以通過ConfirmText屬性的Get和Set屬性方法實現。其中,源碼中的定義如下: get_ConfirmText : function() { /// <value
Time of Update: 2018-12-07
1.下載微軟發布的補丁,Filetool.rar (35.23 KB) ,不過是以未編譯工程的形式發布的.解壓出來,記住路徑 2.找到目錄,雙擊 filetool.dsw運行,(用VC6開啟 filetool.dsw檔案 3.選擇 win32 release編譯方式,編譯 4.找到release
Time of Update: 2018-12-07
在.Net Framework SDK文檔中,關於調用Windows API的指示比較零散,並且其中稍全面一點的是針對Visual Basic .net講述的。本文將C#中調用API的要點彙集如下,希望給未在C#中使用過API的朋友一點協助。另外如果安裝了Visual Studio .net的話,在C:\Program Files\Microsoft Visual Studio