Hi George,
>You've been reading the MSDN library again, haven't you?:-)
How do you know. *bg*
>Anyway, the purpose of my post is to expand a bit on your's, if you don't mind.
Of course not.
>You can get the main VFP window from foxtools with MainhWnd().
I always forget about this function. Old habbits die hard. :)
>However, if an SDI app is calling the dialog, _WhTohWnd(_WFindTitl(ThisForm.Caption)) may be required.
You are right, otherwise chances are high that the dialog won't appear. If you have several forms with the same caption, you might have to change the caption of the form to SYS(3), get the HWND and then restore the old caption.
Christof
--
Christof