0
Reply

loading local file in webBrowser

christine clarin

christine clarin

Nov 29 2006 4:26 AM
2.7k
Good day, i just want to ask how can I load local files in my webBrowser without having to specify the entire path for example, i have this:

this.webBrowser.Navigate("C:\\CSharp\\till.net.backend.gui\\till.net.backend.gui\\help\\index.htm");

but this isn't nice to look at, and i want my users to be able to put it anywhere in their directories and i just want it to look like this:

this.webBrowser.Navigate("help\\index.htm");

such that it would run anywhere i.e. starting from the current working directory and just going inside help\index.htm

how do i do this?

thank you very much!