集成“帮助”进入 WinForms 应用程序

发布于 2024-09-07 15:47:08 字数 453 浏览 6 评论 0原文

我正在开发一个 Visual Studio,我们需要将帮助菜单集成到其中。我想以规范的 Windows 方式执行此操作,但在这些方面对 .NET 框架缺乏经验。搜索 Google 和 SO 并没有得到太多结果,因为大多数结果都是人们寻求帮助,而不是“帮助”的帮助。元帮助,如果你愿意的话。

根据我所做的研究,.chm 文件似乎是正确的选择。这些文件是如何生成的? VS中有集成工具吗?

获得文件后,如何从中获取数据?我只想在单独的进程中启动它们吗?显示附加表单并将帮助文件加载到其中?

此外,我将它们存储在哪里?我如何告诉我的应用程序去那里查看?我发现了关于多个语言环境的这个问题,稍后会很有用,但是仍然感觉还有很长的路要走。

I am working on a Visual Studio we need to integrate help menus into it. I would like to do this in the canonical Windows fashion but am not very experienced with the .NET framework in these respects. Searching Google and SO hasn't yielded much because most of the results are people asking for help, not help with "help." Meta-help, if you will.

From the research that I've done, .chm files seem to be the way to go. How are these files generated? Is there an integrated tool in VS?

Once I have the files, how do I get the data out of them? Do I just want to launch them in a separate process? Show an additional form and load the help file into it?

Additionally, where do I store them? And how do I tell my application to look there? I've found this question regarding multiple locales, which will be useful later but that still feels like it is a long ways away.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

困倦 2024-09-14 15:47:08

您正在寻找称为“帮助提供者”的东西。它是一个表单组件。它允许您响应表单或表单控件上的 F1 调用,并将其映射到帮助文件中的某个部分。

http://msdn.microsoft.com/en-us /library/system.windows.forms.helpprovider.aspx

http ://www.dotnetspider.com/resources/24241-F-Help-Provider.aspx

http://netpl.blogspot.com/2007/07/context-help-made-easy-revisited.html

CHM 文件可以使用许多免费的工具制作工具。谷歌“免费 CHM 编辑器”或类似的东西。默认情况下,VS 没有集成任何东西。

你无法从他们那里获取数据。当您将控件连接到帮助提供程序时,会发生什么情况,您提供了 CHM 中相关部分的路径。然后它将加载 CHM 查看器并显示相关部分。

You are looking for something called the Help Provider. It's a form component. It allows you to respond to F1 calls on forms or form controls and map that to a section in a help file.

http://msdn.microsoft.com/en-us/library/system.windows.forms.helpprovider.aspx

http://www.dotnetspider.com/resources/24241-F-Help-Provider.aspx

http://netpl.blogspot.com/2007/07/context-help-made-easy-revisited.html

CHM files can be made with a number of free tools. Google "Free CHM Editors" or something similar. There isn't anything integrated with VS by default.

You don't get the data out of them. What happens is when you wire a control to the help provider, you provide a path to the section in the CHM that is relevant. It will then load a CHM viewer and show the relevant section.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文