Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-06-26
5
Medium Priority
?
165 Views
Last Modified: 2011-10-03
Any tips?
0
Comment
Question by:Sunsales
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 38

Accepted Solution

by:
Geert Gruwez earned 1000 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 38

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 38

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 38

Expert Comment

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Suggested Courses

670 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