Even though I'd read this before, I'd forgotten about it and it caused me a slight headache today. If you call Control.Invoke on a custom event delegate which is not EventHandler, you will receive a System.ArgumentException.
From msdn,
Platform Note: In .NET Compact Framework applications, the delegate must be an instance of EventHandler. For an example, see How to: Use a Custom Delegate.
Friday, July 22, 2005
Subscribe to:
Post Comments (Atom)
1 comment:
Headache indeed! Thanks.
Post a Comment