在 VB.NET 中提供帮助文档?
我已经为我的项目编写了故障排除文档,并希望将它们包含在我的程序中。我记得在 VB6 中,有一种非常简单的方法可以使用控件来实现此目的,它已经在左侧设置了帮助文档树,您只需将其设置为指向某些文件即可。
.NET 中是否存在类似的东西?我知道 HelpProvider
控件,但据我所知,这只是在按下按钮时放入工具提示并打开文档?
感谢您的任何帮助。 :)
I have written up troubleshooting documents for my project and would like them included in my program. I remember in VB6 there was a very easy way to do this with a control, where it already has the help document tree set up on the left and you just set it to point to certain files.
Does something like this exist for .NET? I am aware of the HelpProvider
control but as far as I know this just puts in tooltips and opens documents on a button press?
Thanks for any help. :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,Visual Studio 中不存在这样的界面,至少在我在这里安装的 Express 版本中是这样。正如您的调查所示,提供帮助的唯一方法是将
HelpProvider
添加到表单,并将其HelpNamespace
属性设置为您的 HTM/CHM 文件。然后,您可以在每个控件上手动设置HelpKeyword
、HelpString
和/或HelpNavigator
属性。设置最后一个选项可控制如何将HelpKeyword
或HelpString
的值传递到外部帮助文件。To the best of my knowledge no such interface exists in Visual Studio, at least in the express editions that I have installed here. As your investigations showed you, the only way to provide help is to add a
HelpProvider
to a form and set itsHelpNamespace
property to your HTM/CHM file. Then on each control you can manually set theHelpKeyword
,HelpString
and/orHelpNavigator
properties. Setting the last option controls how the values ofHelpKeyword
orHelpString
are passed to the external help file.