Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Easy Question - Help Files

Posted on 2002-05-08
4
Medium Priority
?
149 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Suggested Courses

722 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