how can i exit from the form after clicking the "yes" button of a messageBox??
are you really don't know how to do it? [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim msg As MsgBoxResult If MsgBox("Do you really want to exit ?", MsgBoxStyle.YesNo, "Exit") = msg.Yes Then Me.Close() End If End Sub[/CODE] Read More