D
davis
Hi,
I'm wrapping a 3rd party .NET 2.0 CF library which mandates Dispose be
called.
So, I mandate Dispose be called on my library...I follow the Disposable
pattern described on MSDN...and I Dispose of the wrapped 3rd party
library in there.
My library is meant to be used in Forms.
My question is simply -- what's the proper way to shut down a form?
There is:
~ destructor
<form>_Closing( )
<form>_Closed( )
should I call one of the following, and if so...where...->
Application.Exit( );
this.Close( );
Where should I issue the Dispose( ) on my library?
I'm wrapping a 3rd party .NET 2.0 CF library which mandates Dispose be
called.
So, I mandate Dispose be called on my library...I follow the Disposable
pattern described on MSDN...and I Dispose of the wrapped 3rd party
library in there.
My library is meant to be used in Forms.
My question is simply -- what's the proper way to shut down a form?
There is:
~ destructor
<form>_Closing( )
<form>_Closed( )
should I call one of the following, and if so...where...->
Application.Exit( );
this.Close( );
Where should I issue the Dispose( ) on my library?