Solved

Calling .chm file

Posted on 2001-06-04
3
396 Views
Last Modified: 2011-10-03
I created a .chm file i.e html help file.

i want to invoke it thru VB 6.0

Please let me know how do i do so.

Thanx
0
Comment
Question by:archnaashish
[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
3 Comments
 
LVL 51

Expert Comment

by:Ryan Chong
ID: 6155012
Hi, try this:

___________________________________________________

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Declare Function GetDesktopWindow Lib "user32" () As Long

Private Function StartDoc(ByVal FileName As String) As Long
    Dim Scr_hDC As Long
    Scr_hDC = GetDesktopWindow()
    'change "Open" to "Explore" to bring up file explorer
    StartDoc = ShellExecute(Scr_hDC, "Open", FileName, "", "C:\", 1)
End Function

Private Sub Command1_Click()
    Dim i As Long
    i = StartDoc("C:\Program Files\Microsoft Visual Studio\MSDN98\98VS\1033\Adodc98.chm")
End Sub

'Hope will help.
0
 
LVL 1

Accepted Solution

by:
venkatg76 earned 50 total points
ID: 6155017
We can do like this,
App.HelpFile = "test.chm"


0
 

Author Comment

by:archnaashish
ID: 6155038
Thanx it did work
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Saving history changes to sub form 4 52
message box in access 4 52
How to measure sizes and angles in scanned images ? 3 87
How to read File Date Created using VB6 8 62
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…
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 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…

733 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