Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

How do I implement Dispose() on a TreeView inherited class?

$
0
0

Hi all;

The Windows Forms TreeView control has a Dispose() method. But a sub-class can't override it.

How can I dispose of objects (Brushes & Pens) when the object is no longer in use? I don't want to have to have the parent Control responsible for calling it because sooner or later one of the developers using this will forgot that call.

thanks - dave


What we did for the last 6 months - Made the world's coolest reporting & docgen system even more amazing


Viewing all articles
Browse latest Browse all 8156

Trending Articles