整合[说明"到WinForms应用程序 [英] Integrating "Help" into WinForms Application

查看:194
本文介绍了整合[说明"到WinForms应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作,我们需要帮助菜单集成到它的Visual Studio。我想做到这一点,在典型的Windows时尚,但我不是很有经验,在这些方面的.NET框架。搜索谷歌和SO还没有产生,因为大部分的结果都是人们寻求帮助,不帮,带的帮助。元的帮助,如果你愿意。

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.

这是我已经做了研究,的.chm 文件似乎是要走的路。如何将这些文件生成?有没有在VS的集成工具?

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.

推荐答案

您正在寻找的东西叫做帮助供应商。这是一个表单组件。它可以让你应对在窗体或窗体控件F1调用和映射到一个帮助文件中的部分。

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.

<一个href="http://msdn.microsoft.com/en-us/library/system.windows.forms.helpprovider.aspx">http://msdn.microsoft.com/en-us/library/system.windows.forms.helpprovider.aspx

<一个href="http://www.dotnetspider.com/resources/24241-F-Help-Provider.aspx">http://www.dotnetspider.com/resources/24241-F-Help-Provider.aspx

<一个href="http://netpl.blogspot.com/2007/07/context-help-made-easy-revisited.html">http://netpl.blogspot.com/2007/07/context-help-made-easy-revisited.html

CHM文件可以使用一些免费的工具进行。谷歌免费CHM编辑器或类似的东西。没有任何与VS默认集成。

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.

您没有得到数据了出来。当你连接一个控制,以帮助供应商,您提供的路径在CHM的部分是有关会发生什么事。然后,它会加载一个CHM浏览器和显示的相关部分。

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.

这篇关于整合[说明&QUOT;到WinForms应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆