One quick and dirty way to do it would be undef($Window); but that may cause other problems if you have other widgets that reference the window. For example, if you have a Timer that updates a clock on $Window every second, you will begin to get errors every second. So, unless you *really* want to eliminate it, you might be better to just Hide it.
-----Original Message-----
From: Cruickshanks, Darin []
Sent: Thursday, November 20, 2003 5:21 AM
Subject: [perl-win32-gui-users] Destroying a window


How do you destroy a window in Win32::Gui?  I read about a Destroy() method but this doesn’t seem to help.  In the past I have just hidden any windows that I wanted to remove but I now nee to destroy one completely.

Darin Cruickshanks
Labs Manager, Computing Service
University of Essex
01206 873585