Click here to Skip to main content
16,006,006 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have create Help file help.chm, I need to know if there is a possibility that file to insert like a resource and not to call from a path. Because If I want to make e setup it will be a problem.

Application is in Windows Form ...
Posted

1 solution

As explained here http://msdn.microsoft.com/en-us/library/xbx3z216.aspx[^] resources, such as strings, images, or object data, can be included in resources files. Since, .chm file is not a string and not an image it can be stored as an object. But, then retrieving it and accessing the contents to display help may be difficult.

I think it is preferable to keep it as a separate file and include it in the setup project.
As explained here http://vijirajkumar.blogspot.in/2010/03/create-setup-and-deployment-project.html[^] a file can be included in the Setup project. When the installation is done on the user machine this file will be copied to the folder on the user machine as designated in the Setup project. Hence, the file can be accessed as a .chm file from the application.
Regarding Setup project I think the following references
http://msdn.microsoft.com/en-us/library/19x10e5c.aspx[^]
http://msdn.microsoft.com/en-us/library/z11b431t.aspx[^]
http://www.youtube.com/watch?v=S-rEZ4Ir_PQ[^]
may also be helpful.

This Code Project article C# WinForms Application Full Integration with HTMLHelp ( .chm ) - Help Topics, Context Sensitive Help, and Tooltips[^] may be helpful to integrate the help in the application.
 
Share this answer
 
Comments
Sandeep Mewara 29-Apr-12 1:46am    
Good answer. 5!
Shahin Khorshidnia 29-Apr-12 4:35am    
Yes it's perfect. +5 too ;)
VJ Reddy 29-Apr-12 11:05am    
Thank you, Shahin.
VJ Reddy 29-Apr-12 11:05am    
Thank you, Sandeep.

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