>
>Yesterday I wrote about it :
>---
I slept since then :)
>I have fixed it by very stupid way : I have put a "ThisForm.SetFocus" instruction into Deactivate method of every modal window that can be called from the Process screen. It worked well until we have translated our product to another languages. We have used INTL toolkit. Here the problem : INTL use modal forms instead standard MessageBoxes. So, it does not work together with my dirty patches.
>---
>
>Also if you try to show form3 (modal) from form2 - you will have a problem again.
Oh, of course that would be a problem.
How about something like:
if _screen.activeform.windowtype = 0
ThisForm.Command1.SetFocus()
endif
Steve Gibson