Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VS2010 Microsoft
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 28-Jan-13 22:02pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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>
 
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");
           }
       }
 
So if, you press F1 key in the form , the help file will be open
 
Best Regards,
Muthuraja
  Permalink  
v2
Comments
syedaliaizazuddin at 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 at 30-Jan-13 3:37am
   
Hi,
Please refer the updated the solution.
syedaliaizazuddin at 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)

  Print Answers RSS
0 OriginalGriff 190
1 Jochen Arndt 155
2 PIEBALDconsult 150
3 Afzaal Ahmad Zeeshan 120
4 DamithSL 115
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100