本文整理自网络,侵删。
uses ShellAPI;
procedure TForm1.FormCreate(Sender: TObject);
begin
LinkLabel1.Caption := '<a href="http://www.52chaxun.com/">我爱查询网</a>';
end;
procedure TForm1.LinkLabel1LinkClick(Sender: TObject; Link: string;
LinkType: TSysLinkType);
begin
ShellExecute(0, nil, PChar(Link), nil, nil, 1);
end;
相关阅读 >>
Delphi 获取其它软件的tlistbox句柄,怎么取得listbox中的数据
Delphi strtoint 将“字符型”转换成“整数型”
Delphi tmsweb core webhttprequest1提交json数据
Delphi 获取动态创建的image与scrollbox的相对位置
更多相关阅读请进入《Delphi》频道 >>