basic
Example:
If ControlID$ = "Chk2" Then
DlgText
"History", "Push to display nested dialog"
End If