It is clear with modal forms...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim f As New myForm
f.ShowDialog(Me)
f.Dispose
End Sub
But what to do with non modal forms?
Where to dispose it?
Dim f As New myForm
f.Show(Me)
f.Dispose
This will close newly created form immediately so f.Dispose shouldn't stay here.
If I put that in _FormClosing handler will be nice but not enough since we can have few instances of that form running.
1) So, where and how to dispose non modal forms opened like in second example?
2) Is here any event to know that our child form closes?