Solved

Internet Explorer

Posted on 2004-03-29
4
308 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

920 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

13 Experts available now in Live!

Get 1:1 Help Now