linking to an external file from a application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i am using webbrowser control and i want it to display a file when a form loads
the file is included in the project but how do i link it
AxWebBrowser1.Navigate(" ??? "

p.s. - i am a beginner

also can i open this newsgroups in outlook express ?
 
* =?Utf-8?B?YW5vbnltb3Vz?= said:
i am using webbrowser control and i want it to display a file when a form loads.
the file is included in the project but how do i link it.
AxWebBrowser1.Navigate(" ??? ")

"file:///c:/sample/foo.htm".
 
if i write AxWebBrowser1.Navigate("D:\vbprojects\sample.htm") will the form run correctly when i install on the clients computer. if the client installs it in c:\mysoftware\ will he/she able to run the application smoothly or there will be trouble.
 
Hi "anonymous"

You could use:
AxWebBrowser1.Navigate(System.IO.Path.Combine(Application.StartupPath,
"sample.htm"))
Maybe AxWebBrowser1.Navigate("sample.htm") might even work, but I haven't
tried that out.

Good luck,
Peter

anonymous said:
if i write AxWebBrowser1.Navigate("D:\vbprojects\sample.htm") will the
form run correctly when i install on the clients computer. if the client
installs it in c:\mysoftware\ will he/she able to run the application
smoothly or there will be trouble.
 
And yes you can open this newsgroup in outlook express.
In the accounts option, create a new account, set the NNTP server to be
news.microsoft.com and rest of it should be pretty simple.
 
Back
Top