473,408 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

FormClosing and FormClosed ?

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
Apr 23 '07 #1
1 15962
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.
---------------------------
"Pascal" <sc*********@wanadoo.rfwrote in message
news:46***********************@news.orange.fr...
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

Apr 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Academic | last post by:
I read the Help and some of the many Google hits I got but can't find out the difference between MyBase.Closing and MyBase.FormClosing Can anyone tell me? Thanks
13
by: Academic | last post by:
I have a MDI form, sometimes child forms and sometimes forms that are neither If I close the app the child forms closing and closed event happens followed by the Mdi form receiving the...
71
by: active | last post by:
In the main program I check to see if a certain form has been disposed. Does it make sense in that form's FormClosed event to do: Me.Dispose to make sure it is disposed the next time I check. Or...
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
6
by: Pascal | last post by:
Hello What are the steps to close properly (being sure that nothing keeps in memory) forms opened as vbmodal even if man uses the "red cross" at the top right form ? thanks ...
0
by: Academia | last post by:
I have a Mdi app. In FormClosing, e.CloseReason works OK in the Children. But in the Mdi form it always show UserClosing. Since the children close first I could set a global flag in them...
8
by: AAaron123 | last post by:
If I show a form with ShowDialog and Dispose it FormClosing does not appear to run. At least I think that is true. If I want FormClosing and FormClose to run am I suppose to call the forms...
2
by: Anthony P. | last post by:
Hello Everyone, I'm writing an application that will reside in the system tray once it is configured. The application also has an exit button called, creatively, ExitButton. I'm in a bit of a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.