Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi I want to open a web page in th 1

Status
Not open for further replies.

ozgurtekin

Programmer
Apr 22, 2003
17
TR
Hi
I want to open a web page in the default browser
but the web page's position is not stated.
I added ShellAPI in uses and
I did this but didnn't work:
ShellExecute(handle,'open',OpenDialog1.FileName,nil,nil,1);
When I change OpenDialog1.FileName to a file like ''c:\test.htm' it works.
Is it possible to have a changable file name in the
ShellExecute(handle,'open',OpenDialog1.FileName,nil,nil,1);
code

 
try this

if OpenDialog1.execute then
ShellExecute(handle,'open',pchar(OpenDialog1.filename),nil,nil,1);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top