Mega Code Archive

 
Categories / Delphi / LAN Web TCP
 

How to open a specific url in default browser

Title: How to open a specific url in default browser uses ShellApi; The usage example is ShellExecute(self.WindowHandle,'open','http://www.delphi-zone.com',nil,nil, SW_SHOWNORMAL); If the url is not hardcoded then you have to use PAnsiChar, or Pchar if delphi version is bellow 2009 ShellExecute(self.WindowHandle,'open',PAnsiChar(url),nil,nil, SW_SHOWNORMAL);