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

x
?
Solved

Call or Open CHM file in Visual Basic

Posted on 2004-08-10
3
Medium Priority
?
2,580 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
[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 3

Accepted Solution

by:
TILL earned 400 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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

715 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