This mentioned code will handle msgbox behaviour in VB6.
msgvalue = MsgBox("Do You want to Quit ", vbOKCancel, "Quit")
If msgvalue = 1 Then
Unload Me
Else
Cancel = True
End If
msgvalue = MsgBox("Do You want to Quit ", vbOKCancel, "Quit")
If msgvalue = 1 Then
Unload Me
Else
Cancel = True
End If
Comments
Post a Comment