06.27.2002

Funny, it wasn't June 29th yesterday. D'oh! Anyway, if you're making custom controls in .NET and you want to use a container (like a panel) to swap them in and out from the user's view depending on what they're doing and you've adding event wiring into your code, don't remove them from the container! That is, don't call Clear() on the Controls collection. The form won't close until you reload the control. Yikes! I'll try to distill this down into a small example later and to ensure that I'm not insane.

* Posted at 06.27.2002 12:00:00 AM CST | Link *

Blog History