In my code I am trying to open a helpfile (.chm) from the local network using the following code
private void helpToolStripMenuItem_Click(object sender, EventArgs e)
{
Help.ShowHelp(this, @"\\server\Helpfiles\HelpFiles.chm");
}
If I wanted to open this .chm outside of my application I needed to add a key to my registry first because of security reasons.
I thought that this would also work for my application, however it still say's cancelled.
How can I open this .chm file and it's content?
You need to alter one of the security settings on the machine. I use the following .reg file to effect the modification:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions]
"MaxAllowedZone"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\HTMLHelp\1.x\ItssRestrictions]
"MaxAllowedZone"=dword:00000001
Read all about it here: http://support.microsoft.com/kb/896358