Delphi 指定在IE浏览器或IE内核打开链接


本文整理自网络,侵删。

 
uses System.Win.ComObj;

procedure OpenInIE(url: string);
var
  IE: OleVariant;
begin
  // IE := CoInternetExplorer.Create;
  // IE.Visible := True;
  // IE.Navigate2(url);
  IE := CreateOleObject('InternetExplorer.Application');
  IE.visible := True;
  IE.Navigate(url);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
OpenInIE('http://www. .com/');
end;

相关阅读 >>

Delphi 中的包开发

Delphi ado的事务处理例子

Delphi android gps服务

Delphi udp文件传输

Delphi mscomm简单的中间pc串口数据中转

Delphi debug模式下可以但是release模式下报错原因之一

Delphi isdirectory 判断是否是目录

Delphi10及以上版本安装activex控件

Delphi 使richedit中的链接可以点击

Delphi winapi: findwindow、findwindowex - 查找窗口

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...