in reply to Win32::GUI and Focus Problems
use threads. This is exactly what they are designed for.
Have your gui message loop run in the main thread and run the ftp code in a separate thread.