Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Open Help file


'1. F1 Key
'Set app.Helpfile Property and Press F1

'2. API
Declare WinHelp ...

'bring up contents of Help file
iResult = WinHelp( Me .hwnd, "c:\yourfile.hlp" )

'jump to topic (topic id=1000 in this example)
iResults = WinHelp( Me .hwnd, "c:\yourfile.hlp" , HELP_CONTEXT, 1000&)

'bring up search window
iResults = WinHelp( Me .hwnd, "c:\yourfile.hlp" , HELP_PARTIALKEY, ByVal "" )

'quit Help
iResults = WinHelp( Me .hwnd, "c:\yourfile.hlp" , HELP_QUIT, 0&)