按F1键应打开.chm文件 [英] Press F1 should open .chm file

查看:211
本文介绍了按F1键应打开.chm文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..!
我写了
Help.ShowHelp(this,Application.StartupPath +"\\" +"HelpFile.chm");
在基于C#Windows的应用程序中单击按钮时发生的事件,在这里我可以打开.chm文件,也可以通过按F1键..
但是....,
当我创建.msi并安装到另一台计算机时,F1无法打开.chm帮助文件..!

请给我一些想法...!谢谢

Hi Everybody..!
i have written
Help.ShowHelp(this, Application.StartupPath + "\\" + "HelpFile.chm");
on button click event in c# windows based application and here i m able to open .chm file as well as by pressing F1 key..
But....,
When i create .msi and install to another machine F1 is not working to open the .chm help file..!

please give me some idea for that...! Thanks

推荐答案

你好,

可能是您在安装过程中将chm文件放到了错误的文件夹中吗?

另一个可能的问题:确保F1按下是由您的手柄处理的(请确保您可以简化显示消息框).

也可能是您将chm放置在程序文件中的原因-由于UAC系统可能不允许在Program Files文件夹中执行更改,但是chm加载后会创建chw文件-尝试在UserData中创建应用程序帮助文件夹,然后将chm文件放入在那里.

问候,
Maxim.
Hello,

Probably, you put the chm file into wrong folder during setup?

Another possible issue: be sure that F1 pressing is handled by your handle (you can simpify display message box to be sure).

Also can be bcs of you place chm in program files - due UAC system may not allows to perform changes in Program Files folder, but chm once loading creates an chw file - try to make your application help folder in UserData, and put your chm file in there.

Regards,
Maxim.


这篇关于按F1键应打开.chm文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆