本文整理自网络,侵删。
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,ShellAPI;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
ShellExecute(0, 'open',PAnsiChar(Application.Exename),nil,nil, SW_SHOWNORMAL);
ExitProcess(0);
end;
end.
相关阅读 >>
Delphi通过ie窗口句柄获取网页接口(iwebbrowser2)
Delphi 中 image 控件加载bmp、jpg、gif、png等图片的办法
更多相关阅读请进入《Delphi》频道 >>