I need my program to be able to become the window on top and on top with focus.

then I need a new form to pop up from that window.

I am doing it now but the window's blue caption bar blinks and it does not let me type into a text box until I click the form with my mouse.

I call the setwindowspositon API

then I set focus to the form

what else should I try?