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 postmessage 虚拟按键

Delphi 获取文件名不带扩展名

Delphi 单击android上的web浏览器链接以启动Delphi应用程序

Delphi 申请内存空间 内存分配 缓冲区

Delphi检查是否在64位windows环境中运行?

Delphi textfile读取文本文件

Delphi中组件label、edit、tag、memo、richedit

Delphi 简单的字符串加密和解密

Delphi数组之菜鸟篇

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



打赏

取消

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

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

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

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

评论

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