Andrew,
>Is there something that I could be using that would be a
>bit more general purpose here and elseware? Possibly using a generic type?
There are some generic delegate types in the base class libraries you
can use, I guess the one that would work best here is void
Action<T>(T). So you could replace your ControlDelegate with an
Action<Control>, but that wouldn't exactly make the rest of your code
any more general purpose.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ |
http://www.dotnetinterop.com
Please reply only to the newsgroup.