Private Sub Form2_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing 'ici le code pour réactualiser ton Form1 End Sub
Private MyForm2 As Form Private Sub OuvreForm2() MyForm2 = New Form2 MyForm2.Show() AddHandler MyForm2.FormClosed, AddressOf MyForm2_FormClosed End Sub Private Sub MyForm2_FormClosed(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) MajForm1() RemoveHandler MyForm2.FormClosed, AddressOf MyForm2_FormClosed 'Pour être plus propre mais je ne sait pas si l’intérêt est réel ^^ End Sub Private Sub MajForm1() [...] End Sub
AddHandler Form2.Disposed, AddressOf Form2_Disposed
Private Sub Form2_Disposed(ByVal sender As Object, ByVal e As System.EventArgs) [...] End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question