VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Attaching Help to Apps

by TonyGG (5 Submissions)
Category: Coding Standards
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

A shell command could be used to do this as *.chm file excute by clicking on them. Below is the shell command to use. Also shows how to shell execute a string variable.
More info on Help and what you could with it. Goto. https://www.smountain.com/c_VBHelp.htm.

Rate Attaching Help to Apps

http://www.smountain.com/c_VBHelp.htm
Option Explicit
Private 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

Private Sub CmdHelp_Click()
Dim Stg1 As String
'shell the help file
Stg1 = App.Path & "\" & "mshelp.chm" 'exchange with your help file name
ShellExecute hwnd, "open", Stg1, "", "", vbNormalFocus
End Sub

Download this snippet    Add to My Saved Code

Attaching Help to Apps Comments

No comments have been posted about Attaching Help to Apps. Why not be the first to post a comment about Attaching Help to Apps.

Post your comment

Subject:
Message:
0/1000 characters