Time of Update: 2018-12-03
實際應用中可能需要程式自動建立BDE別名特試建 MSsql和paradox資料庫別名//單元代碼unit Unit11;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, DBTables;type TForm11 = class(TForm) mmo1: TMemo; btn1: TButton;
Time of Update: 2018-12-03
設定隨機數範圍, 返回數組長度, 得到一組不重複的隨機數unit Unit11;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm11 = class(TForm) btn1: TButton; procedure btn1Click(Sender: TObject); private /
Time of Update: 2018-12-03
看到有同學提問, 自己試煉了一把, 只為實現標籤頁效果, 未作細化和完善工作.路過的同學多多指教 --------------------------------------------------------------a.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Time of Update: 2018-12-03
使用情境: 多個WebBrowser同時使用, 分別響應斷行符號, 右鍵菜單等事件已在Delphi xe測試通過//單元檔案unit Unit11;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, OleCtrls, SHDocVw, ComCtrls, activeX;type TForm11 = class(TForm) pgc1:
Time of Update: 2018-12-03
無法定位序數325於動態連結程式庫SHDOCVW.dll的解決方案先從別的使用正常的電腦上複製一個叫shdocvw.dll的檔案(所有電腦的shdocvw.dll檔案都在C:/windows/system32這個路徑裡),將問題電腦在安全模式下開啟(開時按F8),將問題電腦shdocvw.dll/檔案重新命名(因為系統問題不能直接粘貼替換問題檔案,只得重新命名,例:我將有問題的shdocvw.dll檔案改成shdocvw11.dll),然後將複製來的正常的shdocvw.dll檔案複製到C:/w
Time of Update: 2018-12-03
在WCF服務編程中,用戶端添加引用服務時,出現如下錯誤:中繼資料套件含無法解析的引用:“net.tcp://192.168.1.105:1314/LoginService”。通訊端串連已中止。這可能是由於處理訊息時出錯或遠程主機超過接收逾時或者潛在的網路資源問題導致的。本地通訊端逾時是“00:04:59.8281250”。遠程主機強迫關閉了一個現有的串連。如果該服務已在當前解決方案中定義,請嘗試產生該解決方案,然後再次加入服務參考。主要原因是沒有添加如下伺服器的設定檔App.config中紅色
Time of Update: 2018-12-03
(1)用Partition Magic 將擴充分區刪除重建,將C盤設定成ACTIVE。 (2)開機後,在看到DELL表徵圖時,按3下F2,進入BIOS。(灰色介面) (3)分別按鍵盤上的Caps Lock, Scroll Lock, 以及 Num Lock三個鍵,使鍵盤上相應的三個指示燈點亮。 (4)同步選取Alt + E 按鍵組合。這時系統將會發出“嘀”的一聲,表明NVRAM已被清除。 (5)按Alt + F 按鍵組合,恢複BIOS出廠設定,當然也有“
Time of Update: 2018-12-03
【轉】 如何在Win7旗艦版中安裝並設定IIS? 2010-06-07 19:14轉載自 分享最終編輯 他不就是我嘛
Time of Update: 2018-12-03
程式可以在隱藏狀態列全螢幕顯示和原始狀態顯示之間切換unit Unit13;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm13 = class(TForm) btn1: TButton; procedure btn1Click(Sender: TObject); private {
Time of Update: 2018-12-03
標題彈出層的html如下: <div id="floatBoxBg"></div><div id="floatBox" class="floatBox"><div class="title"><h4>標題</h4><span>關閉</span></div><div
Time of Update: 2018-12-03
以前寫過一篇xp系統換主題的小程式,http://blog.csdn.net/zuoming120/article/details/6575267 xp系統你們可以去看看這個。實在不行就去下載我的寫的小程式,純屬自己娛樂,串連地址:http://download.csdn.net/detail/zuoming120/3404590 win7就不用自己寫了,自己做,這種文章已經有很多人寫了,但是我這裡寫一下自己的做法,一下我以win7旗艦版為例介紹,win7家庭版,直接可以直接下載我的主題包,
Time of Update: 2018-12-03
看到有網友需要這樣的例子,所以寫了一個. 有不對或不合理的地方請跟帖指導.delph XE下測試通過.Dll專案檔library Project10;uses SysUtils, Classes, Forms, Unit14 in 'Unit14.pas' {Form1};{$R *.res}Function EDebtMoney(H: THandle): integer;begin Application.Handle := H; with
Time of Update: 2018-12-03
直接上單元代碼unit Unit11;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm11 = class(TForm) edt1: TEdit; btn1: TButton; edt2: TEdit; btn2: TButton; procedure
Time of Update: 2018-12-03
JFIF格式的Jpeg屬性讀取, 讀取了標準檔案頭, 其它內容結構需要逐項解析, 暫時沒有做, 有感興趣的朋友可以繼續完善.procedure TJFIF.ReadAPPn;var wrd, wrd2 : word; str : string;begin wrd := GetWord; while (wrd >= $FFE1) and (wrd <= $FFEF) do begin wrd2 := GetWord - 2; str :=
Time of Update: 2018-12-03
解答網友問題, 記錄如下:未經處理資料11,3811,3611,3711,3911,4012,3412,3512,3612,3712,3812,4013,3313,3413,3513,3613,4014,3214,3314,3414,3514,4015,3115,3215,3315,3415,4016,3016,3116,3216,3917,291,12,02,12,32,43,1處理代碼unit Unit15;interfaceuses Windows, Messages,
Time of Update: 2018-12-03
最近項目中用到的圖片上傳前預覽功能,相容IE6-9,FF<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <body> <input
Time of Update: 2018-12-03
函數說明如下:{x,y:當前座標Color:針對該色彩執行填充事件FillStyle:fsBorder(從當前位置開始填充,直到遇到Color),fsSurFace(當前底色和color相同時填充) }procedure TCanvas.FloodFill(X, Y: Integer; Color: TColor; FillStyle: TFillStyle);範例程式碼procedure TForm15.btn1Click(Sender: TObject);const Points1:
Time of Update: 2018-12-03
按周迴圈排班, 員工人數及值班人數可自訂.單元檔案unit Unit15;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm15 = class(TForm) mmo1: TMemo; cbb_Month: TComboBox; procedure FormCreate(Sender:
Time of Update: 2018-12-03
修改cxgrid的分組標題 delphi XE測試通過.單元檔案unit Unit15;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxStyles, dxSkinsCore, dxSkinCoffee,
Time of Update: 2018-12-03
單例模式簡單示意, delphiXE下測試通過unit Singleton;(* 單例模式適用於輔助類, 一般伴隨於單元的生命週期*)interfaceuses SysUtils;type TSingleton = class public class function NewInstance : TObject; override; class function GetInstance : TSingleton; destructor Destroy;