Solved

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

Posted on 2008-06-26
5
158 Views
Last Modified: 2011-10-03
Any tips?
0
Comment
Question by:Sunsales
  • 4
5 Comments
 
LVL 36

Accepted Solution

by:
Geert Gruwez earned 250 total points
ID: 21873549
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
 
LVL 36

Expert Comment

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

uses ShellApi;
0
 

Author Comment

by:Sunsales
ID: 21874261
i dont understand:

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

i have to add some dos commands?

0
 
LVL 36

Expert Comment

by:Geert Gruwez
ID: 21874562
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
 
LVL 36

Expert Comment

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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now