Loading Help File in VB.NET

P

Pug Fugly

I have a .chm file that I have added to my project.
The "Build Action" of the file is set to "Content". I am
trying to use Help.ShowHelp() to load the file but it only
seems to work if I use a full file path and not a relative
one. I get the following error "Invalid URI: The format
of the URI could not be determined." If I click
on "Continue" in the debugger, the file loads after that
exception. Using a full path (ie. "c:\folder\test.chm")
works fine without the exception, but something
like "/Global/Help/test.chm" does not. Any idea why? I
have tried switching the slashes but it didn't seem to
work.

Thanks,
Pug
 
P

Paul Clement

¤ I have a .chm file that I have added to my project.
¤ The "Build Action" of the file is set to "Content". I am
¤ trying to use Help.ShowHelp() to load the file but it only
¤ seems to work if I use a full file path and not a relative
¤ one. I get the following error "Invalid URI: The format
¤ of the URI could not be determined." If I click
¤ on "Continue" in the debugger, the file loads after that
¤ exception. Using a full path (ie. "c:\folder\test.chm")
¤ works fine without the exception, but something
¤ like "/Global/Help/test.chm" does not. Any idea why? I
¤ have tried switching the slashes but it didn't seem to
¤ work.

Don't believe relative paths are supported. I would work off the application assembly path or a
special folder path.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top