Solved

Easy Question - Help Files

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

747 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

11 Experts available now in Live!

Get 1:1 Help Now