玩
玩命
Unregistered / Unconfirmed
GUEST, unregistred user!
在表单1上:
procedure TForm1.BitBtn2Click(Sender: TObject);
begin
form2.showmodal;
end;
在表单2上:
procedure TForm2.BitBtn1Click(Sender: TObject);
begin
if OpenPictureDialog1.Execute then
ImageDBImage.picture.LoadFromFile(OpenPictureDialog1.filename);
end;
为什么在OpenPictureDialog关闭时,form2一块关闭了??
用什么方法可以阻止?
procedure TForm1.BitBtn2Click(Sender: TObject);
begin
form2.showmodal;
end;
在表单2上:
procedure TForm2.BitBtn1Click(Sender: TObject);
begin
if OpenPictureDialog1.Execute then
ImageDBImage.picture.LoadFromFile(OpenPictureDialog1.filename);
end;
为什么在OpenPictureDialog关闭时,form2一块关闭了??
用什么方法可以阻止?