On Sep 20, 9:56 am, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
Once you get the assembly for the executing assembly, you will want to
use the Location property on the assembly to get the directory that the
assembly is in.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com
<timn...@gmail.comwrote in message
news:11**********************@19g2000hsx.googlegro ups.com...
I have a web browser control that I'd like to point at a HTML file in
my installation directory. I am doing something like:
string path = Path.GetDirectoryName(
Assembly.GetExecutingAssembly().GetModules()
[0].FullyQualifiedName) +
"\\howdoi.htm";
webBrowser1.Navigate(path);
What do I need to do to form the correct URI string for a local file?
Thanks.
Thanks but the path comes out as C:\....\howdo.ihtm which is the
correct file name, but the Navigate method displays page not found
type error. Let's say I wanted to navigate to a local file C:\temp
\text.html.... what would I pass to navigate ?