Solved

VB Help Option

Posted on 2001-06-24
5
181 Views
Last Modified: 2010-05-02
Hello all,

l have a small vb program and l  want  to add
a help option to it.

Can anyone suggest the best way of doing this and
where l can get it from.

regards Ashtray.
0
Comment
Question by:ashtray
5 Comments
 
LVL 33

Accepted Solution

by:
hongjun earned 50 total points
ID: 6223359
The most basic and simplest method is to have a menu for user to click or press F1 to launch the .hlp for .chm file.

How can I make help files, like the ones almost all the programs have?

I would recommend HTML Help Workshop.
To download it, go to http://www.download.com and then search for "HTML Help". It will then return you a whole list of search

results. Choose to download HTML Help Workshop 1.3.1.

This program will allow you to create .chm files. chm files are widely used and in fact MSDN library

actually comprises of many many chm files.

The software also got a feature called decompile. What this function does is that it will take an existing

.chm files and then convert it into various HTML Help files. This is really useful. When I first learnt

how to create help files using this software, I never read its help files. What I did is do a decompile

on an existing .chm files and then learnt from it. How they are created and so on. Individual pages

of .chm help file is actually made up of many html files which make creating of pages even easier.

.chm files can also be called from Visual Basic by using the below coding.

Private Const HH_DISPLAY_TOPIC = &H0
Private Const HELP_FILE = "DBHelp.chm"
Private Const START_PAGE = "index.htm"
Private Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" (ByVal hwndCaller As Long, ByVal

pszFile As String, ByVal uCommand As Long, dwData As Any) As Long

Private Sub LoadHelp()
  If HtmlHelp(0, HELP_FILE, HH_DISPLAY_TOPIC, ByVal START_PAGE) = 0 Then
      MsgBox "DBHelp.cfm not found!", vbApplicationModal + vbCritical + vbOKOnly, "Help File Not Found"
  End If
End Sub

Guide to create a help file.
http://www.freelancestoryteller.com/the_freelance_storyteller/help_index.htm

hongjun
0
 
LVL 9

Expert Comment

by:Valliappan AN
ID: 6223507
ping..
0
 
LVL 8

Expert Comment

by:glass_cookie
ID: 6226504
Hi!

As for me, I merely use a new form/project (depending whichever is necessary) with labels and lots of text in them.

Another way is to use the F1 shortcut key in a menu like what hongjun mentioned and probably an OLE packager to embed your help file or help origram (if you're using a new project to create your help file).

That's it!

glass cookie : )
0
 

Author Comment

by:ashtray
ID: 6239743
Thanks Honqiun,

lm back on track again.

regards Ashtray.
0
 
LVL 33

Expert Comment

by:hongjun
ID: 6240098
:)
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now