gpt4 book ai didi

c# - 在 c# 应用程序中打开本地网络上的 .chm 文件

转载 作者:行者123 更新时间:2023-11-28 00:15:46 25 4
gpt4 key购买 nike

在我的代码中,我尝试使用以下代码从本地网络打开帮助文件 (.chm)

private void helpToolStripMenuItem_Click(object sender, EventArgs e)
{
Help.ShowHelp(this, @"\\server\Helpfiles\HelpFiles.chm");
}

如果我想在我的应用程序之外打开这个 .chm,出于安全原因,我需要先向我的注册表添加一个 key 。

我认为这也适用于我的申请,但它仍然说已取消。

如何打开这个 .chm 文件及其内容?

最佳答案

您需要更改机器上的一项安全设置。我使用以下 .reg 文件来实现修改:

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

在这里阅读所有相关信息:http://support.microsoft.com/kb/896358

关于c# - 在 c# 应用程序中打开本地网络上的 .chm 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12217387/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com