By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,036 Members | 960 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,036 IT Pros & Developers. It's quick & easy.

Form Close Disposes?

P: n/a
When a form is closed, does it dispose? If not, how can I force that?
Trying to do a little memory management :-)

Derek
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Fri, 12 Nov 2004 16:21:25 -0600, Derek Martin wrote:
When a form is closed, does it dispose? If not, how can I force that?
Trying to do a little memory management :-)

Derek


If you show the form using the Show method, it is automatically disposed
when you close it. If you show it using ShowDialog, it is NOT disposed and
you must dispose of it yourself.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #2

P: n/a
On Fri, 12 Nov 2004 16:21:25 -0600, Derek Martin wrote:
When a form is closed, does it dispose? If not, how can I force that?
Trying to do a little memory management :-)

Derek


If you show the form using the Show method, it is automatically disposed
when you close it. If you show it using ShowDialog, it is NOT disposed and
you must dispose of it yourself.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #3

P: n/a
Awesome - thank you!
"Chris Dunaway" <"dunawayc[[at]_lunchmeat_sbcglobal[dot]]net"> wrote in
message news:1t******************************@40tude.net.. .
On Fri, 12 Nov 2004 16:21:25 -0600, Derek Martin wrote:
When a form is closed, does it dispose? If not, how can I force that?
Trying to do a little memory management :-)

Derek


If you show the form using the Show method, it is automatically disposed
when you close it. If you show it using ShowDialog, it is NOT disposed
and
you must dispose of it yourself.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.

Nov 21 '05 #4

P: n/a
Awesome - thank you!
"Chris Dunaway" <"dunawayc[[at]_lunchmeat_sbcglobal[dot]]net"> wrote in
message news:1t******************************@40tude.net.. .
On Fri, 12 Nov 2004 16:21:25 -0600, Derek Martin wrote:
When a form is closed, does it dispose? If not, how can I force that?
Trying to do a little memory management :-)

Derek


If you show the form using the Show method, it is automatically disposed
when you close it. If you show it using ShowDialog, it is NOT disposed
and
you must dispose of it yourself.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.