Go Premium for a chance to win a PS4. Enter to Win


I want Delphi 2007 to tell my default webbrowser to open a URL

Posted on 2008-06-26
Medium Priority
Last Modified: 2011-10-03
Any tips?
Question by:Sunsales
  • 4
LVL 38

Accepted Solution

Geert Gruwez earned 1000 total points
ID: 21873549
procedure TForm1.ButtonClick(Sender: TObject);
  ShellExecute(0, 'OPEN', 'http://www.experts-exchange.com', nil, nil, SW_SHOWNORMAL);

and from the command prompt:
start http://www.experts-exchange.com
LVL 38

Expert Comment

by:Geert Gruwez
ID: 21873555
oh yeah  don't forget to add

uses ShellApi;

Author Comment

ID: 21874261
i dont understand:

{and from the command prompt:
start http://www.experts-exchange.com}

i have to add some dos commands?

LVL 38

Expert Comment

by:Geert Gruwez
ID: 21874562
no you can test it like that too to see if it works

hit start / run
start http://www.experts-exchange.com

opens the command window

start http://www.experts-exchange.com
should open your default browser in devexpress

you could experiment by changing the default browser ...

LVL 38

Expert Comment

by:Geert Gruwez
ID: 21874568
there are 2 solutions in there :)

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question