How do I call help files in the app?

zhaozj2021-02-16  78

Help files in the software are very important, it is the window of the user knows the software. Here is how to call the help file in VB.

Create a new project, join the control command on the form, then add the following code on the code window (preferably in the module)

Option expedition

'Call the help file, parameters: IndexIDPublic Sub ShowMeHelp (Optional IndexID As Integer) On Error GoTo Err With CommonDialog1 .HelpFile = App.HelpFile If IndexID = 0 Then .HelpCommand = cdlHelpContents Else .HelpContext = IndexID .HelpCommand = cdlHelpContext End If .ShowHelp End with exit suberr: msgBox err.description, vbinformation, "prompt" end sub

转载请注明原文地址:https://www.9cbs.com/read-12383.html

New Post(0)