471,092 Members | 1,040 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

How to include Help File in Visual Basic Project

1
Hello,

I have created a help file of .chm extension.

Now i want to include it in my Visual Basic 6.0 Project.

Please tell me how to do it?
Apr 8 '06 #1
1 2855
CaptainD
135 100+
If you just want to show the file with Windows default program for the help file you could do something like th following.

This code snippet came from: http://www.thescarms.com/

In the general section for your form:
Expand|Select|Wrap|Line Numbers
  1.  
  2. Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
  3. (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
  4. ByVal lpParameters As String, ByVal lpDirectory As String, _
  5. ByVal nShowCmd As Long) As Long
  6.  
  7. Const SW_SHOWNORMAL = 1
  8.  
In a click event:

Expand|Select|Wrap|Line Numbers
  1. Call ShellExecute(Me.hwnd, "open", "C:\PathToHelpFile\HelpFile.chm", "", 0, SW_SHOWNORMAL)
  2.  
Apr 8 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Byron | last post: by
2 posts views Thread by Tommy Vercetti | last post: by
4 posts views Thread by Anders Eriksson | last post: by
3 posts views Thread by =?Utf-8?B?VG9kZCBEb2JtZXllcg==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.