Click here to Skip to main content
11,813,379 members (69,427 online)
Rate this: bad
Please Sign up or sign in to vote.
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 21:02pm

1 solution

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

Solution 2

You can use the Help class in VS2010
Help.ShowHelp(this, @"Q:\help\Myhelp.chm", HelpNavigator.Topic, "BACNet");
<pre lang="c#">
Help.ShowHelp(this, @"Q:\help\Myhelp.chm", HelpNavigator.TopicId, "10001");

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,
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
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 Abhinav S 270
1 CHill60 180
2 KrunalRohit 154
3 Palash Mondal_ 145
4 Sergey Alexandrovich Kryukov 140
0 OriginalGriff 3,877
1 KrunalRohit 2,496
2 CPallini 2,240
3 Maciej Los 2,205
4 ppolymorphe 1,750

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2015
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