- uses ShellAPI;
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- ShellExecute(Handle, 'open', 'IExplore.EXE', 'about:blank', nil, SW_SHOWNORMAL);
- ShellExecute(Handle, 'open', 'firefox.exe', 'about:blank', nil, SW_SHOWNORMAL);
- ShellExecute(Handle, 'open', 'Explorer.exe', 'about:blank', nil, SW_SHOWNORMAL);
- end;
- uses ComObj;
- procedure TForm1.Button1Click(Sender: TObject);
- procedure OpenInIE(aURL: string);
- var IE: Variant;
- begin
- IE := CreateOleObject('InternetExplorer.Application');
- IE.Visible := true;
- IE.Navigate(aURL);
- end;
- begin
- OpenInIE('www.132435.com');
- end;
- uses ComObj;
- procedure TForm1.Button1Click(Sender: TObject);
- procedure OpenInIE(aURL: string);
- var IE: Variant;
- begin
- IE := CreateOleObject('InternetExplorer.Application');
- IE.Visible := true;
- IE.left := 0;
- IE.top := 0;
- IE.height := 600;
- IE.width := 800;
- IE.menubar := 0;
- IE.addressbar := 0;
- IE.toolbar := 0;
- IE.statusbar := 0;
- IE.resizable := 0;
- IE.Navigate(aURL);
- end;
- begin
- OpenInIE('www.XXX.com');
- end;
|
请发表评论