如何在C#中进行帮助? [英] How to make Help in c# ?

查看:69
本文介绍了如何在C#中进行帮助?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想在C#中创建帮助按钮或菜单条中的帮助,就像软件中的标准帮助一样.

Hi all, I want to make help button or help in menustrip in C#, like standard helps that are in software.

Does any one has an Idea ???

推荐答案

无论使用哪种编程语言,您都可以使用免费软件(例如帮助按钮 [ http://www.c-sharpcorner.com/uploadfile/mahesh/menustrip-in -C-Sharp/ [ ^ ]
http://www.speakcomputers.com/windows-forms-programming/MenuStrip.aspx [ ^ ]
No matter of programming language, you can write help for your application with free software, like HelpMaker[^].

HelpButton[^] is the property of windows form.

How to make menustrip in C#?
http://www.c-sharpcorner.com/uploadfile/mahesh/menustrip-in-C-Sharp/[^]
http://www.speakcomputers.com/windows-forms-programming/MenuStrip.aspx[^]


如果问题与Windows Forms application,有关,则Control.HelpRequested可用于显示上下文相关帮助.如此处所述
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.helprequested.aspx [ ^ ]
当用户按下F1键或单击关联的上下文相关帮助按钮时,通常会引发HelpRequested事件
在上面的参考文献中也给出了一个示例.

由于Windows Forms controls是从Control 类派生的,因此此事件将在它们上可用.

关于使用菜单条或工具栏中的帮助按钮,可以使用带有适当帮助图标的标准按钮,并且可以在此按钮的click事件中处理帮助.
If the question is related to the Windows Forms application, then Control.HelpRequested can be used for displaying the context sensitive help. As explained here
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.helprequested.aspx[^]
The HelpRequested event is commonly raised when the user presses the F1 key or an associated context-sensitive help button is clicked
An example is also given at the above reference.

Since, Windows Forms controls are derived from the Control class this event will be available on them.

Regarding using the help button in menu strip or tool bar, a standard button with appropriate help icon can be used and the help can be handled in the click event of this button.


阅读以下内容:

http://stackoverflow.com/questions/1029316/how-to-create-f1-help-in-windows-forms-using-c-sharp [ http://stackoverflow.com/questions/1006312/how-to-open-chm-file-on-specified-node-toc-net [ http://bytes.com/topic/c-sharp/answers/227251-creating-帮助文件 [^ ]
Read the following:

http://stackoverflow.com/questions/1029316/how-to-create-f1-help-in-windows-forms-using-c-sharp[^]

http://stackoverflow.com/questions/1006312/how-to-open-chm-file-on-specified-node-toc-net[^]

http://bytes.com/topic/c-sharp/answers/227251-creating-help-files[^]


这篇关于如何在C#中进行帮助?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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