I want my application to be able to access an external help file. I also want the user to be able to install the program is his chosen folder. The problem this creates is that I don't know how to specify the Namespace for the help provider. I want to have the help file installed in the "Help" folder under Windows. I've been trying to figure this out, and can't. Can someone help me out here? Here's the code I was trying to use for the click event:
// get environment variable representing the Windows folder
String s = Environment.GetEnvironmentVariable("windir");
// set h to WindowsPath\Help\helpfile
String h = s + "/Help/MyHelpFile.chm";
Help.ShowHelp(this, HelpProvider1.HelpNamespace);
When I run this, I get no build errors, but when I click the Help menu item, it throws an exception indicating the URL isn't correct. I have tried several ways to make the Namespace property be the path to the .chm file with no success.