Focus in desktop App to Container controls

I have a container control that I have embedded in a page.

I wish to shift the focus to text field on that container control.


Has no effect. What am I missing?

Not a clue, that works fine for me.

Should work as I do this a fair amount. I’m not aware of any bugs with it.

Could you be stealing focus in another method? You doing this in an event, perhaps?

You seem to have gotten this right. You should mark Bob Keeney’s post as the answer to this post and work out where your bug lies or if it is a bug in Xojo. If you are not setting focus to any other controls then it is probably a bug in Xojo. Use the feedback system.

Good day

Inadvertent Focus Stealing… Ill bet I am qualified to work on the IDE.