Search This Blog

Thursday, June 23, 2011

Handle Cross(X) button on control box in form in vb.net.

 Private Sub Form1_FormClosed(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase.FormClosed
        MessageBox.Show("closed")
    End Sub
    Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
        MessageBox.Show("closing")
    End Sub

No comments:

Post a Comment