Solved

Call or Open CHM file in Visual Basic

Posted on 2004-08-10
3
2,562 Views
Last Modified: 2013-11-25
hi! i just want to know how can i open an .CHM in Visual basic.
thanks.
0
Comment
Question by:nolram
3 Comments
 
LVL 3

Accepted Solution

by:
TILL earned 100 total points
ID: 11760641

Const HH_DISPLAY_TOPIC = &H0
Const HH_HELP_CONTEXT = &HF

Private Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" (ByVal hwndCaller As Long, _
                                                                                                   ByVal pszFile As String, _
                                                                                                   ByVal uCommand As Long, _
                                                                                                   dwData As Any)  as Long
Private Sub Form_Load()
    HtmlHelp 0, "PATH_TO_YOUR_CHM_FILE ", HH_DISPLAY_TOPIC, 0
End Sub
0
 

Author Comment

by:nolram
ID: 11760756
Thank you so much TILL
'til next time. peace
0
 

Expert Comment

by:laurentiu_turbatu
ID: 24239959
Shell("rundll32 url.dll,FileProtocolHandler " + "path and file name.chm", AppWinStyle.MaximizedFocus)
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 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