Very cool, Bill's idea to add the || isDisposed worked perfectly. I did not see that property.
Bonnie, yes the variable is still in scope, as it should be, but I did not realize that it would not be null when I close the window. I thought it would be set to null automatically after the dispose(). Silly idea on my part, I guess.
I know the GC might take its time, but I thought it would point to null, and therefore I'd recreate the form. But now it works perfectly!
Thanks, everyone!
-Jerry
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement