>Hi Sergey,
>
>In the meantime your 2 functions are working like a bell. But I realize, that when a window is minimzed, the SetForegroundWindow() API does not bring it in front. Do you know by any chance a maximize function in API, if not, I will try to post this question in public.
>Thank you so much in advance
You may check if calling these API functions makes your form's .activate fire - if it does, then you can just check for windowstate there and restore it to normal.