Windows.Forms.Form.Closed event

Should I enter Me.Dispose in order to free all resources

Why is this event not included when converting from a VB 2003 project (neither is .Closing by the way)



Answer this question

Windows.Forms.Form.Closed event

  • Wenlong.Dong

    Thank you.

    This is the kind of answer I appreciate.

    Reading the post you are referring to, I can see that the subject is very complicated.
     

  • Drew Burlingame

    The Closing and Closed events have been superceded by the FormClosing and FormClosed events.

    You shouldn't need to call Me.Dispose when the FormClosed (or Closed) events fire if you dispose of the Form correctly:

    If Form.Show is used and the form is closed, you do not need to dispose of the form.

    If Form.ShowDialog is used and the form is closed, you do need to dispose of the form.

    I have actually discussed this at length here:

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=138424&SiteID=1



  • Windows.Forms.Form.Closed event