DlgHelpEvent example for Visual Basic

Private Sub LEADRasterDlg1_DlgHelp(ByVal DlgFrom As Long, ByVal CtlID As Long)
    Select Case DlgFrom
        Case DLG_HELP_CONTOUR
            Select Case CtlID
                Case LTDLG_IDC_CONTOUR_OPTION, LTDLG_IDC_CONTOUR_OPTIONLABEL
                    MsgBox "Help on Contour Option"
                Case LTDLG_IDC_CONTOUR_THRESHOLD, LTDLG_IDC_CONTOUR_THRESHOLDLABEL
                    MsgBox "Help on Contour Threshold"
                Case LTDLG_IDC_CONTOUR_DELTADIRECTION, LTDLG_IDC_CONTOUR_DELTADIRECTIONLABEL
                    MsgBox "Help on Contour DeltaDirection"
                Case LTDLG_IDC_CONTOUR_MAXIMUMERROR, LTDLG_IDC_CONTOUR_MAXIMUMERRORLABEL
                    MsgBox "Help on Contour MaximumError"
            End Select
        Case Else
            MsgBox "No Help!"
    End Select
End Sub