Related Pages
Delphi Tips and Code
- Clearing edit fields
- Starting email client
- Starting applications
- Connecting to / disconnecting from network
Delphi Applications

Delphi Tips and Code

Starting the Default Web Browser

To open the default web browser at a particular page (i.e. your web site) use the following code:

Add ShellAPI in the uses of the interface section of your unit.

Then put the following code in an onclick event for a button on your form:

procedure TForm1.Button1Click(Sender: TObject);
begin
   ShellExecute(GetDesktopWindow(), 'open', pChar('http://www.kasabsoftware.com.au/'), nil,
   nil, SW_SHOWNORMAL);
end;


  • Home
  • |
  • Sitemap
  • |
  • Databases
  • |
  • Web development
  • |
  • Delphi development
  • |
  • Image manipulation
  • |
  • KaSaB
  • |
  • Contact