Delphi 中打开浏览器跳转网址链接网页的几种方法:
1:用默认浏览器打开:
uses shellapi
procedure TForm1.Button2Click(Sender: TObject);
begin
ShellExecut(Application.Handle, nil, 'http://www.muzhuangnet.com', nil, nil, SW_SHOWNORMAL);
end;
2:用指定的浏览器打开(这里以谷歌浏览器为例):
ShellExecute(handle, 'open', 'chrome.exe',PChar('http://www.muzhuangnet.com'), nil,SW_SHOWNORMAL);
相关阅读 >>
Delphi xe 泛型数组和splitstring处理数据
Delphi xe firemonkey的stylebook皮肤控件的使用
更多相关阅读请进入《Delphi》频道 >>