Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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?
Posted

1 solution

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

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


You can add the above code in the Form_KeyUP Event
C#
private void Form1_KeyUp(object sender, KeyEventArgs e)
       {
           if (e.KeyCode == Keys.F1) 
           {
               Help.ShowHelp(this, @"Q:\help\Myhelp.chm", HelpNavigator.Topic, "BACNet");
           }
       }


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

Best Regards,
Muthuraja
 
Share this answer
 
v2
Comments
syedaliaizazuddin 29-Jan-13 23:31pm    
could you plz explain more about that ? i want like msdn help . when some one click f1 then my help will be shown . how could i achieve that from above code?
Muthuraja Irullandi 30-Jan-13 3:37am    
Hi,
Please refer the updated the solution.
syedaliaizazuddin 30-Jan-13 4:49am    
this is right but i have two questions
1- how can i write my own help file ?
2- i have a large web application so how could i implement that code in it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900