?
Solved

Internet Explorer

Posted on 2004-03-29
4
Medium Priority
?
312 Views
Last Modified: 2012-05-04
Hi guys...

I have litle project wich need to run Internet Explorer with url, wich i show in my project.

So some litle exsample:

editbox1.text:='www.http://www.experts-exchange.com'; //this is URL

button1click
begin
programm runs "Internet explorer" with URL what i wrote in that edit box

so program runs explorer with URL www.http://www.experts-exchange.com
end;

Is it posible to do?
0
Comment
Question by:Kristao
[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
  • 2
4 Comments
 

Accepted Solution

by:
glaZer_software earned 500 total points
ID: 10707772
yes it is possible.
try this:

procedure Execute(url: String);
var s:String;
begin
  s:='';
  If Pos('http://',lowercase(Url))<=0 then s:='http://';
  ShellExecute(Self.WindowHandle, 'open', PChar(s+Url), nil, nil, SW_SHOWNORMAL);
end;


this will launch the default internet browser with your URL so it it more genereal
in your case it might be internet explorer
0
 

Expert Comment

by:glaZer_software
ID: 10707795
one more thing before useing
shellexecute you must put
    ShellApi
in your uses clause, i think
0
 
LVL 4

Expert Comment

by:BedouinDN
ID: 10708709
Or you could use:

uses ComObj;

procedure TForm1.Button1Click(Sender: TObject);
var
IE: Variant;
begin
IE:=CreateOleObject('internetexplorer.application');
IE.Visible:=True;
IE.navigate('http://www.experts-exchange.com');
end;

You can also access a lot of the Internet Explorer browsers content using the com object.

:-)
0
 
LVL 1

Author Comment

by:Kristao
ID: 10711384
thx glaZer_software
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

800 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