Solved

Easy Question - Help Files

Posted on 2002-05-08
4
145 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

839 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