Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

How to implement chm Help to Visual Basic Applications
[ All Languages » VB »  Help]

Total Hit ( 2369)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


'Put a command button to your form and name it cmdHelp
Private Sub cmdHelp_Click()
  'This is only a example
  ShowHtmlHelp App.path & "\MyHelp.chm", "Introduction.htm"
End Sub

Click here to copy the following block
'First place a existing chm File in the project path.
'You must know what name your htm pages have to work
'correct.

'In a module place the follwing code
Option Explicit
Private Declare Function HtmlHelpTopic Lib "hhctrl.ocx" Alias _
  "HtmlHelpA" (ByVal hWnd As Long, ByVal lpHelpFile As String, _
  ByVal wCommand As Long, ByVal dwData As String) As Long

Sub ShowHtmlHelp(ByVal tHelpFile As String, ByVal tHelpPage As String)
  Const HH_DISPLAY_TOPIC =3D &H0
  On Error Resume Next
  ' open the help page in a modeless window
  HtmlHelpTopic 0, tHelpFile, HH_DISPLAY_TOPIC, tHelpPage
End Sub


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.