How is the diference about Handles MyBase.Closed and Handles MyBase.Closing

  • Thread starter Thread starter marciocamurati
  • Start date Start date
M

marciocamurati

Hi,

Anyone know explain how is the diference about use at my form close
Handles MyBase.Closed or Handles MyBase.Closing, because I didn't see
any diference about it !

Thanx
 
Closing fires before form is actually closed; Closed is fired after form is
closed:



Closing << Can prevent from been closed.

<Form is actually closed here>

Closed << << Can not prevent from been closed, it's already done.


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
Hi,

Right, another doubt for the Garbage Collector has any diference use
Closed or Closing for "kill" the created objects ?

Thanx
 
These events should not be used for that purpose. Please override Dispose()
to "kill" created objects add call it as soon as you don't need this form
anymore.

Generally you don't have to do that as it's done for all form's controls and
components automatically.


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
Back
Top