The focus of the first control was the problem, not the form minimizing. In post #4 it was solved by taborder, in post #8 it came back. No idea what he's doing. Without any code at hand hardly doable, isn't it?
What you want, ravicoder, only needs two lines of code in the main startup.prg...