Solved

Call or Open CHM file in Visual Basic

Posted on 2004-08-10
3
2,555 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

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

707 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

18 Experts available now in Live!

Get 1:1 Help Now