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

Any tips?
Paer ToernellAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Geert GConnect With a Mentor Oracle dbaCommented:
procedure TForm1.ButtonClick(Sender: TObject);
begin
  ShellExecute(0, 'OPEN', 'http://www.experts-exchange.com', nil, nil, SW_SHOWNORMAL);
end;

and from the command prompt:
start http://www.experts-exchange.com
0
 
Geert GOracle dbaCommented:
oh yeah  don't forget to add

uses ShellApi;
0
 
Paer ToernellAuthor Commented:
i dont understand:

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

i have to add some dos commands?

0
 
Geert GOracle dbaCommented:
no you can test it like that too to see if it works

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

cmd
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 ...

0
 
Geert GOracle dbaCommented:
there are 2 solutions in there :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.