本文整理自网络,侵删。
通过 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执行sql提示“不正常地定义参数对象”,“提供了不一致或不完整的信息”错误
Delphi2010新功能:tdirectory.getfiles 支持通配符
更多相关阅读请进入《Delphi》频道 >>