打开网页

打开网页

uses ShellAPI;
procedure TForm1.Button1Click(Sender: TObject);
begin
  //用IE打开
  ShellExecute(Handle, 'open', 'IExplore.EXE', 'about:blank', nil, SW_SHOWNORMAL);
  //用火狐打开
  ShellExecute(Handle, 'open', 'firefox.exe', 'about:blank', nil, SW_SHOWNORMAL); 
  //用默认浏览器打开
  ShellExecute(Handle, 'open', 'Explorer.exe', 'about:blank', nil, SW_SHOWNORMAL);
end;
posted @ 2011-04-02 14:50  左手写诗  阅读(303)  评论(0编辑  收藏  举报