Solved

Internet Explorer

Posted on 2004-03-29
4
310 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
  • 2
4 Comments
 

Accepted Solution

by:
glaZer_software earned 125 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Suggested Solutions

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 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