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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

web browser local reference 1

Status
Not open for further replies.

BPMan

Programmer
Jun 25, 2002
163
0
0
US
i want to load a html file that is in the same folder as my executable but i can't figure out what write for the file location:
for a normal file it would just be
axWebBrowser1.Navigate("test.html");

but this does not work, any ideas???
thanks

 
App.Path always points to the folder that your program is running from. Use:
axWebBrowser1.Navigate (App.Path & "test.html")

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
thanks that did the trick
 
You're welcome! and Thanks

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top