S
Sam Sungshik Kong
Hello!
I am creating a user control.
It draws something in OnPaint method every 0.5 second.
Instead of creating a Pen object and disposing it every time in the method,
I create a Pen object in the constructor and want to dispose it.
My question is what's the best way to dispose it?
Do I have to follow the "Implementing a Dispose Method" guide of MSDN?
It seems to be a lot of additional code.
TIA.
Sam
I am creating a user control.
It draws something in OnPaint method every 0.5 second.
Instead of creating a Pen object and disposing it every time in the method,
I create a Pen object in the constructor and want to dispose it.
My question is what's the best way to dispose it?
Do I have to follow the "Implementing a Dispose Method" guide of MSDN?
It seems to be a lot of additional code.
TIA.
Sam