本節將帶領大家開發和註冊一個列表條目事件處理常式。該事件處理常式情境:向一個“員工資訊”列表中添加一條資訊,如果“姓名”為空白則取消添加,如果添加後再網站的“通知”列表中添加一條通知。我們將重載SPItemEventReceive接收類的ItemAdding和ItemAdded方法,利用物件模型來註冊事件處理常式。(1)開發事件處理常式集在Visual Studio
對於這些經常泡網、載東東、寫程式的人來說,通常要開N多個視窗,有些時候為了比較兩個視窗、觀察效果經常要在兩個視窗上來回切換,很是不便,特別是螢幕小的更是麻煩!下面這個程式是專門用來設定任意表單處於最頂端的,通過拖動十字游標到所要的視窗,就可以得到該視窗的控制代碼並自動設為最頂層,也可以通過右鍵來刪除不要的視窗: 下面就來分析代碼:要設定視窗在Windows Z軸的位置可以調用WinAPI:SetWindowPos:in VB6.0Code highlighting produced by
writer 外掛程式資源Windows Live Writer Plugins 這是一個WLW外掛程式的網站,分類很清楚:File Sharing、Images、Tagging、Vedio…Codeplex 發布在Codeplex上,到現在只有15個不是很多,而且有點外掛程式很令人失望,沒有多大功能而且有異常,但對於愛好者來說還是值得去逛的,畢竟Codeplex還是一個很受開發人員青睞的網站Writer Zone Live Writer的官方網站,在上面可以得到關於Live
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using System.Runtime.InteropServices;
Windows 2000安裝免輸序號在Windows2000安裝目錄的I386檔案夾中有一個檔案:setupp.ini,將其中的PiD欄位改為Pid=52273270,安裝程式時就不會提示輸入CD-KEY了.當然前提是你把安裝檔案拷貝到硬碟,並取消setupp.ini的唯讀屬性,這樣才可以進入改動。如何關閉xp的硬碟容量不足的提示? 到控制面版-----管理工具----服務裡雙擊Logical Disk
If you need advanced, feature-rich .NET charts and graphs, then Dundas Chart for .NET is the perfect solution for you. From the leader in .NET charting technology, Dundas Chart adds award-winning charts to your ASP.NET and Windows Forms applications.
環境:XP sp2 ,vb6 (未打sp6補丁)測試:建立一個工程,在表單上加一個ImageList控制項(預先為控制項加入幾個表徵圖),然後在表單上加一個按鈕,添加如下代碼:Private Declare Function ImageList_GetImageCount Lib "comctl32" ( _ByVal himl As Long) As LongPrivate Sub Command1_Click()dim j as longj =
If you use multithreading to improve the performance your Windows Forms applications, you must be careful to make calls to your controls in a thread-safe way.ExampleAccess to Windows Forms controls is not inherently thread safe. If you have two or