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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use custom HLP files from F1 Key?

Status
Not open for further replies.

kramerica

Technical User
Jun 19, 2001
74
US
Help question:

How do you get Access to call HLP files from "F1" Key?

I can successfully open the file with VB button.
Dim stAppName As String
stAppName = "C:\winnt\system32\Winhlp32 C:\MIGDB\DATABASEHELP.HLP"
Call Shell(stAppName, 1)


Kramerica
 
kramerica,

Put this code on your form:


Private Sub Form_KeyDown(KeyCode As Integer, _
Shift As Integer)
Dim stAppName As String
If KeyCode = vbKeyF1 Then
stAppName = "C:\winnt\system32\Winhlp32 " & _
"C:\MIGDB\DATABASEHELP.HLP"
Call Shell(stAppName, 1)
End If
End Sub

hth,
Wayne
 
kramerica,

Forgot to say that I recall that the Help window will
not be modal. If the user clicks back on your form
I think the help window will be minimized. They might
end up with a lot of instances of Help running if
they keep hitting F1.

I do recall reading that Access (either 97 or 2000)
have trouble implementing "context-sensitive" help.
There are 3rd party products like RoboHelp, but I
don't know much about them.

If you come accross anything interesting regarding the
help interface, please let me know.

Wayne
 
Please view thread 181-27567 I answered the question there if you are using a custom help file. It works I use it, I invoke my help file by pressing F1. I use Visage software to create custom help files. I have no affiliation with this company just love their products. Life's a journey enjoy the ride...

jazzz
 
Jazzz,

The number that you provided 181-27567?

How do I access that? I searched on the number both as keyword and other methods. I also searched on your handle.

How do I get to this specific thread?

Kramerica

WayneRyan - THANKS! - This is exactly what I wanted.
 
Here is how I handle it with a compiled help file. The form/forms that you would like to supply your custom help file for you will need to open them up in design view and add the following code to the on load event of each form. I am assuming you placed the help file within the project directory also.

Dim strHelpPath As String


strHelpPath = CurrentProject.Path & "\MyHelpFile.hlp"
Me.HelpFile = strHelpPath

In the forms property sheet, click the format tab, set the MinMaxButton property to None, and set the What'sThis Button Property to yes.

For each control you want to display context sensitive help for, set the control's HelpContextID property to the context ID of the topic you want to display for the control. To display the topic in a borderless pop-up window, precede the context ID with a minus sign (-).

Hope this helps? Life's a journey enjoy the ride...

jazzz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top