在 VB 中简单使用 HTMLHELP (*.chm) 帮助
来源:互联网 发布:php 动态调用静态方法 编辑:程序博客网 时间:2024/04/29 09:12
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
/
__________/LB___ OUTINN
/ _[]_ /____
/_________/| () |__ http://outinn.yeah.net/
| ____ /-| __ |-| Welcome to visit OUTINN!
|__|==|___| || |__|
-=--=--=- |_||_| =- Fancy, outinn@china.com<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
介绍一下如何在Visual Basic 6中使用HTML Help(.chm)。
大家都知道在Visual Basic 6中可以通过ActiveX控件“Microsoft Common Dialog Control”调用WinHelp帮助文件,那么是否可以用同样的方法调用HTML帮助文件呢?
I am sorry,答案是否定的。
但是 Visual Basic 6 本身支持HTML帮助,我们完全可以直接调用HTML帮助文件而不借助于其它任何ActiveX控件或Windows API函数。
你可以在工程属性中设置所需要使用的HTML帮助文件,或是在程序中直接将成员变量App.HelpFile( = help_file_name)的值设置为程序所需使用的帮助文件名,如上例应使用语句 App.HelpFile = "C:LearnLearn.chm" 来设置所需的帮助文件――当然,使用这样绝对的路径我并不赞成――你可以改为 App.HelpFile = App.Path + "Learn.chm"。然后在窗体上添加一个“帮助”按钮,并在该按钮的单击事件中添加如下代码(假设该按钮的Name属性为“cmdHelp”):
Private Sub cmdHelp_Click()
cmdHelp.HelpContextID = 1 '选定ID号为1的主题
SendKeys "{F1}"
End Sub
当然,该按钮的HelpContextID属性值可以根据实际情况改为其它数值。OK!你的程序已经添加了美观而又方便的HTML帮助,能为你的程序增色不少呢!
/
__________/LB___ OUTINN
/ _[]_ /____
/_________/| () |__ http://outinn.yeah.net/
| ____ /-| __ |-| Welcome to visit OUTINN!
|__|==|___| || |__|
-=--=--=- |_||_| =- Fancy, outinn@china.com<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 在 VB 中简单使用 HTMLHELP (*.chm) 帮助
- 在 VB 中简单使用 HTMLHELP (*.chm) 帮助
- 在 VC 中使用 HTMLHELP (.chm) 帮助文件
- 在 VC 中使用 HTMLHELP (.chm) 帮助文件
- HtmlHelp调用chm帮助文档使用
- 在VB中调用CHM 帮助的几种方法
- 在VB中调用CHM 帮助的几种方法
- VC添加.chm帮助文档 --HtmlHelp
- API方式(Foxpro中HtmlHelp)调用chm帮助文档(不用foxtools.fll获取窗口句柄)
- 用HtmlHelp组件在Delphi应用程序中实现Html帮助
- 用HtmlHelp组件在Delphi应用程序中实现Html帮助
- 调用htmlhelp文件(*.chm)
- 在C#中使用.chm帮助文件
- 在C#中使用.chm帮助文件
- 在MySQL中使用帮助
- Sphinx制作htmlhelp手册文档(Manual-chm)
- 使用 Sandcastle 生成 chm 帮助文档
- 使用 Sandcastle 生成 chm 帮助文档
- Ajax应用案例之MSN Space
- 将listview中显示出来的记录拖到treeview中去
- Ajax应用案例之土豆网
- Socket Programming with VB
- 我所看到的Ajax应用之163邮箱
- 在 VB 中简单使用 HTMLHELP (*.chm) 帮助
- Ajax与DOM操作
- 用VB和MTS开发多层数据库应用系统
- 利用DOM进行Web响应
- 在VB程序中,通过代码改变Combo控件只读属性Style值
- 用VB计算PI精确数值到30000位的程序代码。
- 如何克服对Ajax学习应用的阻碍
- VB中得到当前目录API定义
- Ajax网站大全--经典应用