我想將幫助文件(.chm)連接到我的Windows應用程序。 我該如何做到這一點? 謝謝。將幫助文件連接到應用程序
3
A
回答
5
試試這個
string fbPath = Application.StartupPath;
string fname = "help.chm";
string filename = fbPath + @"\" + fname;
FileInfo fi = new FileInfo(filename);
if (fi.Exists)
{
Help.ShowHelp(this, filename, HelpNavigator.Find, "");
}
else
{
MessageBox.Show("Help file Is in Progress.. ",MessageBoxButtons.OK, MessageBoxIcon.Information);
}
3
使用Help.ShowHelp方法做這件事上的按鈕按下等:
private void button1_click(object sender, EventArgs e)
{
string helpfile = "C:\MyHelp.chm";
Help.ShowHelp(this, helpfile, mypage.htm);
}
,並通過F1鍵鏈接你的幫助,請參閱本指南對如何做到這一點的詳細說明:
http://www.dotnetspark.com/kb/162-open-help-file-on-f1-function-key-press.aspx
2
ÿ你可以使用Help.ShowHelp。從MSDN頁面
一個例子:
private void Button1_Click(System.Object sender, System.EventArgs e)
{
Help.ShowHelp(TextBox1, "file://c:\\charmap.chm");
}
您還可以檢查出這些所謂的網頁:
1
對於的WinForms,優秀Windows Forms Programming提供了一個非常好的概述(第3章,實施幫助)。一些指針:
相關問題
- 1. 如何將幫助文件添加到MVC3應用程序?
- 2. 需要幫助將awt應用程序連接到MS Access數據庫
- 3. C#多線程應用程序和SQL連接幫助
- 4. 如何將幫助文件(.chm)與Web應用程序集成?
- 5. 幫助將DDD應用到動態表單應用程序
- 6. Android應用程序幫助
- 7. Ruby應用程序 - 幫助
- 8. 幫助器應用程序
- 9. 幫助程序文件中的Rails視圖幫助程序
- 10. 將文件所有者連接到應用程序代理
- 11. 如何將SQL文件連接到我的Bluej應用程序?
- 12. 將android應用程序連接到mysql
- 13. 將mysql連接到javafx應用程序
- 14. 將mssql連接到android應用程序
- 15. 將SQLite3連接到應用程序
- 16. 將MySQL連接到Spring應用程序
- 17. 將.NET應用程序連接到MySQL
- 18. 將android應用程序連接到xampp
- 19. 將F#應用程序連接到FIXImulator
- 20. 將mongoDB連接到sencha應用程序
- 21. 將MobileFirst應用程序連接到DB2
- 22. 如何將內容添加到現有的應用程序CHM幫助文件?
- 23. 幫助部署連接到Access數據庫的C#應用程序
- 24. 將Android應用程序連接到JEE6應用程序
- 25. 將symbian應用程序連接到j2me應用程序
- 26. Facebook連接幫助
- 27. 將郵件的接收連接到java應用程序
- 28. CakePHP鏈接幫助程序
- 29. 使用application_controller或幫助程序文件的auth幫助程序方法
- 30. 程序來幫助排序文件