la única diferencia sería en el mdiform en vb.net 2005
el evento guardar lo puse en resize
Código:
Option Strict Off
Option Explicit On
Friend Class MDIForm1
Inherits System.Windows.Forms.Form
Private Sub MDIForm1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
Form1.Show()
Form2.Show()
End Sub
Private Sub MDIForm1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
Dim Forma As Object
For Each Forma In My.Application.OpenForms
If Forma.Visible = True Then
If Forma.Name <> "MDIForm1" Then
Forma.guardar()
End If
End If
Next Forma
End Sub
End Class
nos vemos..