本文整理自网络,侵删。
通过 Deployment Manager 添加图片 CHEMICAL.png 和 FACTORY.pnguses System.IOUtils;
procedure TForm1.FormCreate(Sender: TObject);var Path: string;begin Path := TPath.Combine(TPath.GetDocumentsPath, 'CHEMICAL.png'); if TFile.Exists(Path) then Image1.Bitmap.LoadFromFile(Path); Path := TPath.Combine(TPath.GetDocumentsPath, 'FACTORY.png'); if TFile.Exists(Path) then Image2.Bitmap.LoadFromFile(Path);end;

相关阅读 >>
Delphi windows 编程[9] - wm_close 消息
Delphi windows xp下屏蔽ctrl_alt_del键的方法
更多相关阅读请进入《Delphi》频道 >>