The problem is that the work happens before the form is, well, "shown".  
You need to get the form established before it can close.

My solution is to use a TTimer.  Have OnActivate or OnShow enable a 
TTimer, and move the work to the TTimer event.  It doesn't have to be a 
very long time delay -- just a few milliseconds -- but this gets the 
working code out of the form setup phase.

Rainer

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to