FormClosing and FormClosed ?

  • Thread starter Thread starter Pascal
  • Start date Start date
P

Pascal

bonjour

does somebody explains to me the difference beetween frm_roman_FormClosing
and frm_roman_FormClosed ?
Where do i have to call the sub fermer() to be sure nothing remains in
memory?

When i quit this form with the red cross on the form and reopen it after,
there is always some strings in the textboxes on it... the variables seems
to remain in memory ?
thank you
Private Sub Fermer()

Call miseAzero()

Me.Dispose()

Me.Close()

End Sub

#Region "remise à zéro"

Private Sub miseAzero()

message = ""

LblAfficheLeTaff.Text = ""

TxtBxProposition.Text = ""

LBlPoint.Text = ""

Points = 0

GrpBxSymbols.Enabled = False

GrpBxChoixDuTaff.Enabled = True

Me.Text = "Ecrire en chiffres arabes ou romains" & " :-: Partie n°" &
Parties

BtnGenerer.Enabled = True

BtnProposition.Enabled = False

NbreArabe = Nothing

NbreRomain = Nothing

End Sub


http://www.scalpa.info
 
The Form_Closing event happens before the form closes, and you can cancel
it. The Form_Closed event occurs after the form is closed.

Robin S.
 
Back
Top