S
sunde11
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button2Click(Sender: TObject);
var
i,j:integer;
ts:TTabSheet;
begin
for i:=PageControl1.PageCount-1 downto 0 do
begin
ts:=PageControl1.Pages;
for j:=ts.ControlCount-1 downto 0 do
if ts.Controls[j] is TWebBrowser then
TWebBrowser(ts.Controls[j]).Free;
ts.Free;
end;
end;
当我关闭WebBrowser时,如果在WebBrowser里面是一个pdf、doc文件,这样也要求把acrobat reader、word(pdf)关闭,请问如何实现?
var
i,j:integer;
ts:TTabSheet;
begin
for i:=PageControl1.PageCount-1 downto 0 do
begin
ts:=PageControl1.Pages;
for j:=ts.ControlCount-1 downto 0 do
if ts.Controls[j] is TWebBrowser then
TWebBrowser(ts.Controls[j]).Free;
ts.Free;
end;
end;
当我关闭WebBrowser时,如果在WebBrowser里面是一个pdf、doc文件,这样也要求把acrobat reader、word(pdf)关闭,请问如何实现?