Home > Back-end >  How to import images, and through the button control control pictures show and hide
How to import images, and through the button control control pictures show and hide

Time:10-27

How to import images, and through the button control control pictures show and hide

CodePudding user response:

Demand is not very clear,

Use TImage: imported images: Picture import
Then in button click event with
Show hidden TImage: : the Visible property control

CodePudding user response:

TImage control Image1

AnsiString ss=".//temp. JPG ";

If (FileExists (ss))
Image1 - & gt; Picture - & gt; LoadFromFile (ss);
  • Related