Solved

Internet Explorer

Posted on 2004-03-29
4
311 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 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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 my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
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…

707 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