Solved

Call or Open CHM file in Visual Basic

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
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…

739 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