VBで書くところの
Dim WithEvents IE As InternetExplorer
Private Sub Command1_Click()
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate2 "about:blank"
End Sub
Private Sub IE_DocumentComplete(ByVal pDisp As Object, URL As Variant)
MsgBox "test"
End Sub
こんな事をDelphiでしたいのですが、どうすればいいのでしょうか?
TInternetExplorerでウマクいけばラッキー。
ダメなら、TWebBrowserで。
procedure TForm1.Button1Click(Sender: TObject);
var
ie : Variant;
begin
ie := CreateOleObject('InternetExplorer.Application');
ie.Visible := True;
ie.Navigate2('about:blank');
end;
※usesにComObjを追加してください。
すみません↑の書き込みは無視してください。
ツイート | ![]() |