AllExperts > Experts 
Search      

Visual Basic

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Visual Basic Answers
Question Library

Ask a question about Visual Basic
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Ravindra
Expertise
visual basic application programming from design to access information, sql, engineering and commercial applications. access databases, excel. Optional: 1)a large number of people want me to do work which takes some time and effort. Pl.note that i would like to be paid for such work. 2) if you want me to spend quality time and do special work, i expect to be paid a reasonable price for my time. 3) if you are pleased with my reply you could consider a donation of 1$. 4) you can visit my website http://ravindra.coolpage.biz (under constrn)

Experience

Past/Present clients
project work for a Norway company, and a Canadian company completed. Freelance Project work and Teaching
teaching vb

 
   

You are here:  Experts > Computing/Technology > Basic > Visual Basic > How to link the Help menu contents to one another???

Topic: Visual Basic



Expert: Ravindra
Date: 6/28/2008
Subject: How to link the Help menu contents to one another???

Question
In vb6 i have created a program i.e i took 1 form and i have created Help menu using menu editor. The help menu contains the items-Contents,Index,Search. The help menu should work like windows help for this help menu i should only add the things like contents index and search-In contents index and search what ever topics r necessary for my project i will add. Now i have created the help menu in HTML Help work shop. You can install the HTML Help Workshop, by running the setup program in the HTMLHelp directory of your VB CD (VB6 only). Now i have to link it to my project plzzz tell me how to link it my project Plzzz help me....

Thanks in Advance
Seema

Answer
there are 2 methods, vbhelp and html help/
for html a chm file is needed. if you have a .chm file then

Private Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As _
String, ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long



Private Sub Command1_Click()
Dim ret&

ret& = ShellExecute(Me.hwnd, "Open", App.Path & "\cliconf.chm", "", App.Path, 1)
End Sub

and for vbhelp
this requires a little bit of work. here's the procedure:
1) download the

HCW.exe from Microsoft.com ( or any other site, try google search)
2) get the tutorial link shown below:

http://www.informit.com/isapi/session_id~{FF08283C-F539-47F4-9306-8D201B10F323}/...

http://www.eej.ulst.ac.uk/~ian/VB50/HTML/tutorial_16.html

http://www.helpmaster.com/
ftp://ftp.dcs.napier.ac.uk/pub/s.wilkinson/VB50/tictactoe_help.zip


3) you need to create a document in word, then compile it using HCW.exe into a project file then you convert it to .hlp file.
4)associate it with the vb form Menu.

all these will become clear to you once, you visit and download the above links. a little trial and error may be needed.

Good luck.

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.