如何创建vs2010自定义帮助集成文件。

问题描述:

我必须在vs2010中创建一个帮助文件

,因为在vs2008中提供了一个帮助向导,但在vs 2010中我无法做到这一点。

是可以创建的帮助文件和按f1它去帮助页面。

并且让我知道做那些事情。

我应该在哪里开始这样做?

i have to create a help file in vs2010
as in vs2008 a help wizard is provided but in vs 2010 i cant do that.
is that possible to create help file and on press of f1 it goes to help page .
and give me idea to do that stuff.
where should i have started to do that?

您好,

您可以使用VS2010中的帮助类

Hi,
You can use the Help class in VS2010
Help.ShowHelp(this, @"Q:\help\Myhelp.chm", HelpNavigator.Topic, "BACNet");






OR

<pre lang="c#">
Help.ShowHelp(this, @"Q:\help\Myhelp.chm", HelpNavigator.TopicId, "10001");
</pre>





您可以在Form_KeyUP事件中添加上述代码



You can add the above code in the Form_KeyUP Event

private void Form1_KeyUp(object sender, KeyEventArgs e)
       {
           if (e.KeyCode == Keys.F1) 
           {
               Help.ShowHelp(this, @"Q:\help\Myhelp.chm", HelpNavigator.Topic, "BACNet");
           }
       }





因此,如果您在表单中按F1键,帮助文件将会打开



最诚挚的问候,

Muthuraja



So if, you press F1 key in the form , the help file will be open

Best Regards,
Muthuraja