Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need help with the help feature in VB5

Status
Not open for further replies.

Tico

Programmer
Jun 16, 1999
2
0
0
US
The only reference I found about help in VB5 tells me I need to "invoke" help from a Common Dialog structure. !?<br>
<br>
I followed that and what happens is that it invokes the subjects of the help file but not the Contents file. So the user has no way to go to the "Table of contents" to select a different subject once he is in help mode.<br>
<br>
BUT if I press F1 I get to the Table of contents and from there I access the different subjects with no problem. Plus With F1 the "window" I'm defining works.<br>
<br>
Any clue?
 
Use a simple win API Call<br>
<br>
Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal hWnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)<br>
<br>
on then form load event<br>
<br>
SetAppHelp Me.hWnd<br>
<br>
<br>
on the unload event<br>
<br>
QuitHelp<br>
<br>
If you want to use help on controls and forms, set the HelpContentID property to the value of the help you want<br>
<br>
<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top