G
Guest
Hi,
Can someone tell me how i could close a form if the 'OK' button is clicked in a message box.
i have attempted something like the following....
Private Sub Button2_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
MsgBox("If you continue, u will lose the current booking. Do you wish to continue?",
vbOKCancel)
If vbOK Then Me.Close() Else
End Sub
Also how do i place icons in the message box for this type of warning message?
Thank you
Can someone tell me how i could close a form if the 'OK' button is clicked in a message box.
i have attempted something like the following....
Private Sub Button2_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
MsgBox("If you continue, u will lose the current booking. Do you wish to continue?",
vbOKCancel)
If vbOK Then Me.Close() Else
End Sub
Also how do i place icons in the message box for this type of warning message?
Thank you