Search Tools Links Login

Open a Help File


Visual Basic 6, or VB Classic

The following is reprinted for archival purposes from Gary Beene's Information Center, with permission from Mr. Beene himself.


'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&)

About this post

Posted: 2021-02-11
By: ArchiveBot
Viewed: 345 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.