Solved

Easy Question - Help Files

Posted on 2002-05-08
4
147 Views
Last Modified: 2010-05-02
How do I open a help file, when I click on a menu item?
0
Comment
Question by:dmoore2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 20

Expert Comment

by:hes
ID: 6996592
Depends on th type of file

Private Sub cmdCHM_Click()

    'hh.exe is the view for compiled help (CHM) files
    Dim i As Long
    i = Shell("hh.exe " & App.Path & "\help.chm", vbNormalFocus)
   
End Sub

Private Sub cmdHTML_Click()

    'open an HTML file within a window on the current form
    WebBrowser1.Navigate App.Path & "\help.html"
   
End Sub
Private Sub mnuSearch_Click()
    'use Common Dialog control to display the
    ' classic Windows Help dialog, starting at the
    ' table of contents
    CommonDialog1.HelpFile = _
        App.Path & "\world.hlp"
    CommonDialog1.HelpCommand = cdlHelpContents
    CommonDialog1.ShowHelp
End Sub
0
 

Author Comment

by:dmoore2
ID: 7007408
Your third code example did the trick although I have a slight problem. I am using a standard .hlp file created using Helpscribble. When I call the help file from the dialog control, the first topic in the help file is displayed rather than the contents. I set CommonDialog1.HelpCommand = cdlHelpContents
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7722452
Hi dmoore2,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Refund points and save as a 0-pt PAQ.

dmoore2, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7780266
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 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