当前位置: 首页 > 技术文档 > 正文

先在uses中加入调用的单元 “shellapi,” 标准的网页地址连接: 标准的EMAIL连接:

先在uses中加入调用的单元 “shellapi,”
标准的网页地址连接:

procedure TForm1.Label7Click(Sender: TObject);  
begin
ShellExecute(handle,nil,pchar('http://www.XXX.com'),nil,nil,sw_shownormal);  
end; 

标准的EMAIL连接:

procedure TForm1.Label8Click(Sender: TObject);  
begin 
ShellExecute(handle,nil,pchar('mailto:mail@XXX.com'),nil,nil,sw_shownormal);  
end; 
本文固定链接: https://blog.meyisi.cn/jishu/37.html | 么意思博客
标签:

delphi 调用浏览器打开网页:等您坐沙发呢!

发表评论

快捷键:Ctrl+Enter