Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.
I want to make a help form in my application c# project with WINCHM software.
How do I connect c# & WINCHM?
Posted
Updated 10-May-10 22:20pm
v2
Comments
Michel Godfroid 11-May-10 4:21am    
Updated your subject, and reformatted text. Plzzz help me is not a really good subject line.

The solution can be found in this thread;

http://www.daniweb.com/forums/thread29414.html#[^]


Also, look up the HelpProvider class in the documentation. The HelpNamespace property is where you actually do the initial reference to the chm file.
 
Share this answer
 
v2
#region 生成HHP
private void CreateHHP(string mc)
{
StreamWriter SW;
SW=new StreamWriter("c:\\"+"text.hhp",false,System.Text.Encoding.Default );
SW.WriteLine("[OPTIONS]");
SW.WriteLine("Compatibility=1.1 Or later");
SW.WriteLine("Default Window=Main");
SW.WriteLine("Default topic="+StartupPath+"1.htm");
SW.WriteLine("Default font=宋体,10,134");
SW.WriteLine("Contents file="+chmName+".hhc");
SW.WriteLine("Index file="+chmName+".hhk");
SW.WriteLine("Display compile progress=Yes");
SW.WriteLine("Full-text search=Yes");
SW.WriteLine("Language=0x804 中文(中国)");
SW.WriteLine("");
SW.WriteLine("[WINDOWS]");
SW.Write("Main=\"XXXXXXXXXXXXXXXXXXx\",");
SW.Write("\""+chmName+".hhc\",");
SW.Write("\""+chmName+".hhk\",");
SW.Write("\""+StartupPath+"1.htm"+"\",");
SW.Write("\""+StartupPath+"1.htm"+"\",");
SW.Write(",,,,0x1520,225,0x10306E, ,1,641,481],0x0,0x0,,,,,0");//所有选项卡增改可视化效果由此改
SW.WriteLine("");
SW.WriteLine("");
SW.WriteLine("[FILES]");
SW.Close();
MessageBox.Show("建文件 HHP 成功");
}
#endregion 生成HHP
 
Share this answer
 
azadeh mohamadi wrote:
WINCHM

You might also want to have a look at the Windows Help SDK.
 
Share this answer
 
For this you need to dwld a software called HTML HELP workshop from the net

Her's the link which will help you for that
HTML HELP workshop

Install the file into your system and then all you need is Html help workshop tutorial

Do rate my answer once you find it useful

Thanks & Regards
Radix :)
 
Share this answer
 
I used SandCastle in one of my projects for help file (.chm) generation. It's is very simple to use but it requires your code to be well commented.

And of course you can also Google for "help file generation C#" and will get a lot of articles explaining that.
 
Share this answer
 

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