J
John Devlon
Hi ..
Can anyone please help me ?
Ik would like to raise a messagebox after the close-icon is clicked, asking
me if I'm sure to quit ...
I'm using this code ...
Private Sub myFormClosed(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
Dim intResult = MessageBox.Show("Are you sure to quit?", "Quit",
MessageBoxButtons.YesNo, MessageBoxIcon.Question,
MessageBoxDefaultButton.Button1)
Select Case intResult
Case intResult.Yes
frmNext.Show() 'this form handles the quit
Me.Show()
End Select
End Sub
If i click on "no", the form hides itself, but the application is still
running ... bummer....
john
Can anyone please help me ?
Ik would like to raise a messagebox after the close-icon is clicked, asking
me if I'm sure to quit ...
I'm using this code ...
Private Sub myFormClosed(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
Dim intResult = MessageBox.Show("Are you sure to quit?", "Quit",
MessageBoxButtons.YesNo, MessageBoxIcon.Question,
MessageBoxDefaultButton.Button1)
Select Case intResult
Case intResult.Yes
frmNext.Show() 'this form handles the quit
Me.Show()
End Select
End Sub
If i click on "no", the form hides itself, but the application is still
running ... bummer....
john