Delphi Base

WindSon

导航

2020年3月23日 #

Delphi 禁止重复运行程序的方法

摘要: 第一种方法,使用“过程调用” procedure Del; // 自定义过程 var Mutex: THandle; begin Mutex := CreateMutex(nil, True, PChar(Application.Title)); if GetLastError = ERROR_AL 阅读全文

posted @ 2020-03-23 19:54 windsonvip 阅读(613) 评论(1) 推荐(0) 编辑

2020年3月21日 #

delphi 让执行程序不在任务栏显示

摘要: Application.MainFormOnTaskbar := False; procedure TForm1.FormShow(Sender: TObject); begin ShowWindow(Application.Handle, SW_HIDE); //不显示在任务栏上 end; 阅读全文

posted @ 2020-03-21 21:30 windsonvip 阅读(504) 评论(0) 推荐(0) 编辑

2020年3月18日 #

Delphi WebBrowser内核版本修改D7

摘要: private { Private declarations } public { Public declarations } function WriteAppNameToReg:Boolean; function GetIEVersionStr: string; function IsWin64 阅读全文

posted @ 2020-03-18 23:34 windsonvip 阅读(436) 评论(0) 推荐(0) 编辑

Delphi让网页只允许在WebBrowser里面打开

摘要: [添加组件] 添加 Internet->WebBrowser //显示网页 [添加事件] 鼠标点击WebBrowser组件,在Events事件选项框中找到. OnNewWindows2,OnStatusTextChange.双击添加事件. unit Unit1; interface uses Win 阅读全文

posted @ 2020-03-18 22:54 windsonvip 阅读(438) 评论(0) 推荐(0) 编辑

2020年3月16日 #

Delphi 判断操作系统是32位或是64位

摘要: function IsWin64: Boolean; var Kernel32Handle: THandle; IsWow64Process: function(Handle: Windows.THandle; var Res: Windows.BOOL): Windows.BOOL; stdcal 阅读全文

posted @ 2020-03-16 22:14 windsonvip 阅读(962) 评论(0) 推荐(0) 编辑

Delphi Inputbox 输入时显示‘*’号

摘要: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; const InputboxMessage = WM_US 阅读全文

posted @ 2020-03-16 18:11 windsonvip 阅读(526) 评论(0) 推荐(0) 编辑

Delphi 让窗体自适应屏幕显示

摘要: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V 阅读全文

posted @ 2020-03-16 17:52 windsonvip 阅读(809) 评论(0) 推荐(0) 编辑

delphi 弹出输入框的InputQuery, InputQuery 函数用法

摘要: delphi 弹出输入框的InputQuery, InputQuery 函数用法 procedure TForm1.Button1Click(Sender: TObject); var str: string; begin str := InputBox('输入窗口标题', '输入提示', '默认输 阅读全文

posted @ 2020-03-16 17:48 windsonvip 阅读(1166) 评论(0) 推荐(0) 编辑

delphi Wmi 获取操作系统信息

摘要: uses ActiveX, ComObj; function GetWMIProperty(WMIProperty: string): string; var Wmi, Objs, Obj: OleVariant; Enum: IEnumVariant; C: Cardinal; begin Wmi 阅读全文

posted @ 2020-03-16 17:46 windsonvip 阅读(610) 评论(0) 推荐(0) 编辑

DELPHI 检测服务器地址是否有效

摘要: 利用DELPH 的ICMP控件检测服务器地址 function CheckNetServer():Boolean; begin IdIcmpClient1.Host := '192.168.1.230'; //服务器地址 IdIcmpClient1.Ping; if IdIcmpClient1.Re 阅读全文

posted @ 2020-03-16 17:43 windsonvip 阅读(264) 评论(0) 推荐(0) 编辑