>Hi David,
>
>I found this gotcha while developing a small utility not too long ago. :-) It seems to me the "system" dialogs should be of "desktop" type, not requiring a visible application desktop to display on their own accord. Do you happen to know why they do?
>
>Bill
>
Bill,
I trust that David will correct me if I'm wrong here, so take this with a grain of salt.
I believe what's happening is that this dialog (and other's, such as GETFILE()) are inheriting the parent's visibility (in this case FoxPro's main window), even though they're invoked by a call to the API. Calls to the same dialogs via the Common Dialogs ActiveX control, apparently do not get the parent's window handle (and state) passed to them. Therefore, they are unaffected by the parent window's current status.
Again, this is a guess on my part, but it seems to make sense.
George
Ubi caritas et amor, deus ibi est