06-10-2009, 09:18 PM
Like in VB6 how you can have Form_Unload or something, how do you control the events when the form closes?
C# Help
|
06-10-2009, 09:18 PM
Like in VB6 how you can have Form_Unload or something, how do you control the events when the form closes?
06-10-2009, 10:46 PM
FormClosing (Happens before the form is closed)
and FormClosed (Happens after the form is closed) Code: Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing Code: Private Sub Form1_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
07-10-2009, 02:26 AM
Ok so in C# it would be
Code: private void Form1_FormClosing(object sender, FormClosingEventArgs e)
07-10-2009, 02:32 AM
http://www.java2s.com/Code/CSharp/GUI-W ... gevent.htm
07-10-2009, 03:18 AM
Sorry forgot you wanted C# =P
|
« Next Oldest | Next Newest »
|