View Single Post
Old Nov 1st, 2006, 12:08 AM   #3
melbolt
Hobbyist Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 237
Rep Power: 4 melbolt is on a distinguished road
Send a message via AIM to melbolt Send a message via Yahoo to melbolt
there's an easier way, don't declare your new form in the handler, instead declare it at the top of your class and then just .show or .hide accordingly in the handlers. that way you only have one form throughout the life of the parent instead of creating a brand new one each time the event is raised.
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote