Article ID: 192744
Article Last Modified on 7/1/2004
Public Property Get HelpFile() As String
HelpFile = App.HelpFile
End Property
Public Property Let HelpFile(ByVal vNewValue As String)
If Dir(vNewValue) = "" Then
Err.Raise 53 ' File not found
Else
App.HelpFile = vNewValue
End If
End Property
Public Sub InheritHelp(Optional nWhatsThisHelpId As Integer)
Dim cTemp As Control
If nWhatsThisHelpId = 0 Then
nWhatsThisHelpId = UserControl.Extender.WhatsThisHelpID
End If
For Each cTemp In Controls
On Error Resume Next ' Ignore errors in next statement
cTemp.WhatsThisHelpID = nWhatsThisHelpId ' some controls
' may not have WhatsThisHelpid property
On Error GoTo 0 ' Turn off error handling
Next
End Sub
Private Sub Form_Load()
UserControl11.HelpFile = App.HelpFile
UserControl11.InheritHelp ' Pass WhatsThisHelpId if different
' help Id is desired for contained controls
' By default, the HelpId of usercontrol will be inherited
End Sub
Additional query words: kbDSupport kbDSD WhatsThisHelp kbVBp kbVBp400 kbVBp500 kbVBp600 kbCtrl kbActiveX
Keywords: kbhowto KB192744