delphi3
asked on
Clearing prior image OpenPictureDialog1before execute
Hi All,
I want to clear the OpenPictureDialog preview panel before each execute so that it opens
with a blank as if it was the first time. In the nomal operation the last selection is on the preview.
Any help and an example would be appreciated.
Delphi3
I want to clear the OpenPictureDialog preview panel before each execute so that it opens
with a blank as if it was the first time. In the nomal operation the last selection is on the preview.
Any help and an example would be appreciated.
Delphi3
Hello
Clear the file name before you call the execute method
OpenPictureDialog1.FileNam e :='';
if OpenPictureDialog1.Execute then
......
Best regards
Mohammed Nasman
Clear the file name before you call the execute method
OpenPictureDialog1.FileNam
if OpenPictureDialog1.Execute
......
Best regards
Mohammed Nasman
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Mohammed,
What you have suggested does not work. The prior picture is still there when going to load the next picture.
Can you think of another possibility?
Delphi3
What you have suggested does not work. The prior picture is still there when going to load the next picture.
Can you think of another possibility?
Delphi3
delphi3, I tested my code and it's work fine
can you plz, post ur code that show the OpenPictureBox, and which event you use?
Mohammed
can you plz, post ur code that show the OpenPictureBox, and which event you use?
Mohammed
ASKER
Mohammed,
My apologies for not testing your answer as written. It does indeed work fine.
I thank you very much.
Delphi3
My apologies for not testing your answer as written. It does indeed work fine.
I thank you very much.
Delphi3
With TOpenPictureDialog.Create(
FileName:='';
Execute;
Free;
end;
John.