本文整理自网络,侵删。
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中format与formatdatetime函数详解
Delphi 中 image 控件加载bmp、jpg、gif、png等图片的办法
Delphi timagelist 中使用 透明 png 图标
Delphi 获取android package name:
Delphi通过将数据放入exe的资源信息中的方式制作自已的安装工具
更多相关阅读请进入《Delphi》频道 >>