Solved

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

Posted on 2008-06-26
5
164 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 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses
Course of the Month6 days, 9 hours left to enroll

634 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