Mat!
>Following this code, I was able to add the form as a listner too. Now I can see the form method is also called during each loop iteration, but I still do not know how to test for the escape key?
I recommend checking out "Dot Net Dave's" recommendation on overriding the ProcessDialogKey method.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com