Solved

Easy Question - Help Files

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

777 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