Usually with this sort of thing I'd disable the window containing the button, eg
$win->disable(); If $win is the window with the button in. You might also want to consider making the second window a dialogbox and setting its parent to the first window. From memory this stops the second window having an icon appear in the task bar. Kev. |---------+------------------------------------------------> | | "Magnone, Angelo" | | | <[EMAIL PROTECTED]> | | | Sent by: | | | [EMAIL PROTECTED]| | | ceforge.net | | | | | | | | | 22/10/2002 16:29 | | | | |---------+------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: "[EMAIL PROTECTED] Sourceforge. Net (E-mail)" | | <perl-win32-gui-users@lists.sourceforge.net> | | cc: | | Subject: [perl-win32-gui-users] double click buttons | >----------------------------------------------------------------------------------------------| Anyone know how I can PREVENT a window from appearing more than once... for example: if I click on a button that displays a window....while that window is open, any other attempts to display the same window is ignored; including via menu. :)