Hi Jonathan
> The problem I face is that the main calling form is a desktop form and when calling this function I cannot set its desktop property to .T. at runtime.
You may need to set up the popup form to be a Child Window (ShowWindow = 1) and also AlwaysOnTop = .T.)
----
Regards
Andy Kramek