roosiedb
asked on
Change picture in a Image.
I want to change the picture in a Image. This stuff doesn't work:
Image1.Picture:='new.bmp';
Why doesn't that work? And how do I have to do such a job?
Thanx. A Beginning Delphi-developper.
roosiedb@worldaccess.nl
Image1.Picture:='new.bmp';
Why doesn't that work? And how do I have to do such a job?
Thanx. A Beginning Delphi-developper.
roosiedb@worldaccess.nl
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
to roosiedb
try this code
procedure TForm1.FormCreate(Sender: TObject);
begin
filelistbox1.ApplyFilePath ('c:\*** ');
end;
{**** name of the directory where your BMP is located}
procedure TForm1.FileListBox1Click(S ender: TObject);
begin
image1.picture.LoadFromFil e(filelist box1.filen ame);
end;
try this code
procedure TForm1.FormCreate(Sender: TObject);
begin
filelistbox1.ApplyFilePath
end;
{**** name of the directory where your BMP is located}
procedure TForm1.FileListBox1Click(S
begin
image1.picture.LoadFromFil
end;
try this code
procedure TForm1.FormCreate(Sender: TObject);
begin
filelistbox1.ApplyFilePath
end;
{**** name of the directory where your BMP is located}
procedure TForm1.FileListBox1Click(S
begin
image1.picture.LoadFromFil
end;