>Hi,
>
>I am trying to prevent a window from "jumping." Here is what I mean:
>
>I have a form that in the INIT method has code where the focus is first set to a container and then to a control in this container. When I run the INIT of this form in debugger (slowly) I see that the window is displayed twice, one each SetFocus(). So it makes the window jump. I tried to set the window Visible to .F. but on the first SetFocut the window is still displayed; and then on the second SetFocus.
>
>Any suggestions?
>
>Thank you.
Hi Dmitry,
Don't set focus in the Init event. Doing this breaks normal event sequence. If you really need to set it, do it in form's Activate or form's refresh (conditionally to do this only the first time).
If it's not broken, fix it until it is.
My Blog