Oleksiy,
This is the first time I've seen you properly explain what you think it should do. Up till now, it appeared you wanted focus to go back to the other form.
So now I fully understand your problem.
>
>Actually, no.
>Modal form must keep the focus, SetFocus instuction must be skipped (Like it works in any another languge).
Steve Gibson