Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
Delphi 10 Seattle Enterprise
|
AW: Delphi Forms
31. Okt 2014, 15:42
I would have expected that embeddedwb.AssignEmptyDocument;
should do the job to stop.
yes but cant recreate it if i want to click the form again how do i recreate it after its assign to empty
Why "recreating"?
The problem before was embeddedwb.Free;
, because it will free the embeddedwb
instance. So get rid of that free and just AssignEmptyDocument
.
Delphi-Quellcode:
procedure secondform.FormClose(Sender: TObject; var Action: TCloseAction);
begin
embeddedwb.AssignEmptyDocument;
// I must not destroy my toys if I want to play again with
// embeddedwb.Free;
end;
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
Geändert von Sir Rufo (31. Okt 2014 um 15:45 Uhr)
|