Hello World!
I have this code:
[CODE= vbnet]Private Sub mnuItemExit_Cli ck(ByVal sender As Object, ByVal e As EventArgs) Handles mnuItemExit.Cli ck
If MessageBox.Show ("Are you sure you want to exit system?", "Exit System", MessageBoxButto ns.YesNo, MessageBoxIcon. Question) = Windows.Forms.D ialogResult.Yes Then
Global.System.W indows.Forms.Ap plication.Exit( )
End If
End Sub[/CODE]
How can I prevent it to show it twice everytime I clicked the Yes button?
Rey Sean
I have this code:
[CODE= vbnet]Private Sub mnuItemExit_Cli ck(ByVal sender As Object, ByVal e As EventArgs) Handles mnuItemExit.Cli ck
If MessageBox.Show ("Are you sure you want to exit system?", "Exit System", MessageBoxButto ns.YesNo, MessageBoxIcon. Question) = Windows.Forms.D ialogResult.Yes Then
Global.System.W indows.Forms.Ap plication.Exit( )
End If
End Sub[/CODE]
How can I prevent it to show it twice everytime I clicked the Yes button?
Rey Sean
Comment