Is there a method of linking a chm file to a custom menu option or custom toolbar button? I have documentation for my Access application and I want to do a Help menu, but I don't know how to link the file to my mdb file. I also want to link the Help file to a button in my Switchboard. How do I get these things done?
2 3815
Is there a method of linking a chm file to a custom menu option or custom toolbar button? I have documentation for my Access application and I want to do a Help menu, but I don't know how to link the file to my mdb file. I also want to link the Help file to a button in my Switchboard. How do I get these things done?
In your custom menubar add the 'Microsoft Access Help' menu option from the Windows and Help category. Then change the label to whatever you want and the help file path to the path to your chm file.
I'm not sure how you would add it to the switchboard.
Mary
Is there a method of linking a chm file to a custom menu option or custom toolbar button? I have documentation for my Access application and I want to do a Help menu, but I don't know how to link the file to my mdb file. I also want to link the Help file to a button in my Switchboard. How do I get these things done?
You can launch a Custom Help File from the Switchboard Manager by using the Run Code Command option within the Switchboard Manager and specifying a Function Name that will execute your Help File (*.chm) strictly by file extension association. It does, however, rely on an API call to accomplish this. The basic code follows. Since you can't specify Function Parameters within the call, you must track what Switchboard and associated buttons have been pressed via Public Variables. If you need further assistance, please let me know. - Public Success As Boolean
-
-
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
- Public Function Execute_Program(ByVal strFilePath As String, ByVal strParms As String, ByVal strDir As String) As Boolean
-
Dim hwndProgram As Integer
-
hwndProgram = ShellExecute(0, "Open", strFilePath, strParms, strDir, 3) '3 ==> Show Maximized
-
End Function
In the Switchboard, the FunctionName would be something like fExecuteFileByExtension and the Function itself would be something similar to this: - 'The 1st button on the Test Launch Help File Switchboard would open the Calculator Help File (Calc.chm)
-
Public Function fExecuteFileByExtension()
-
Select Case gSwitchboardName
-
Case "Test Launch Help File"
-
Select Case gButtonClicked
-
Case 1 'Button 1
-
Success = Execute_Program("C:\Calc.chm", "", "")
-
Case 2 'Button 2
-
Case 3 'Button 3
-
Case 4 'Button 4
-
Case 5 'Button 5
-
End Select
-
Case "HazMat Technician (Tier Training)"
-
Select Case gButtonClicked
-
Case 3 'Button 3
-
End Select
-
Case "PFD HazMat Training"
-
Select Case gButtonClicked
-
Case 3 'Button 3
-
Case 4 'Button 4
-
End Select
-
Case "You Get The Idea"
-
End Select
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Thomas |
last post by:
I' currently writing documentation for one of our projects and I need to access the Context ID of a .chm file.
My problem is that the .Net HelpProvider/HelpNavigator does not support access to the...
|
by: Arun Puri |
last post by:
Windows Setup projects have a folder/placeholder for documentation files. How
do I attach a CHM file to that placeholder. I am creating a setup for Windows
Forms App. I surely do not seem able to...
|
by: David Spencer |
last post by:
Here you can find a good tool for chm creation
http://abeetech.com/chmmakerpro/
You must not to create subdirectories. Just add all your html-files
from one directory and structurize the TOC as...
|
by: Sushil Prasad |
last post by:
I am having problem in displaying the compiled help file. In asp.net app I
have link button laballed help. On the users click of this button i do the
respose.redirect to the url of the .chm file....
|
by: Pakmanoncrack |
last post by:
The software company I work for creates 4 chm files from c# code with
ndoc and then combines them into a fifth chm file by merging through
html help. This is all done through a dos build and there...
|
by: Fla |
last post by:
Hy!
I've got the following question in VB.NET.
How can I access to a particular topic of a CHM file generated by HTML
Help Workshop?
Some newsgroups/sites on web suggest to use CHM file for...
|
by: John Salerno |
last post by:
Hi all. I apologize since this is only remotely Python related, but I
hope someone might now the solution.
I tried opening my Python chm docs just now, as well as the one for
wxPython, and both...
|
by: jamesnkk |
last post by:
I want to create a Help contents in Ms Access, I have download some utilities that help me created those html files and a file with extension CHM. In Windows environment, If I double click the CHM...
|
by: Teja |
last post by:
How to create a helpbook and display it using python(in Boa). Also,
how to generate CHM files in Boa(Python)???
Any pointers please................
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |