>Hello Ed,
>
>>Yes; save the hWnd of the Form to a Form property (call it nhWnd) introduced at RunTIme, the first time it's actually displayed by:
>
>Thanks, it helped me to keep that form in the top. However, now I have the following problem. If I bring non-modal form to foreground above modal form, then I can close whole app window with x in right upper corner (which is not good). Is there a way to disable X in right upper corner programmatically?
>
>
>TIA
_Screen.Closable = .F. (Or the top-level form) This will disable the X.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao