
Newbie: Linking local files to WebBrowser
Hello
The code "App.path" will return the path where your application is
installed.
Example:
Command1_Click()
Text1.Text = App.Path + "\Guide\Index.html"
End sub
Personally I Use This code to navigate my WebBrowser to a folder in the
working Path:
WebBrowser1.Navigate ( App.Path + "\MyFolder\MyFile.html")
If You need the slashes to be WEB-style ( / vs. \ ) then just find the
app.path and write some code for replacing the "\" with "/".
Hopes this helps, good luck!!
Trygve
-----------------------
Trygve H?iseth
http://home.sol.no/~thoiseth
Quote:
>>Try file:///C|/<working folder>/guide/index.htm
>That is exactly the problem I am facing. If I do not know where the user
>will install the program, how do I know where <working folder> is?
>TIA
>Matt