Changing the .focus() inside a group box

mhrappstead

Newcomer
Joined
Nov 30, 2006
Messages
4
Yo, I am going to college and I am making a tic tac toe game for one of my assinments. Here is my problem I want to be able to click a button and on click be able to change the focus toward a text box this is the code I am using presently: txtBox.focus()

Hint: This code works as long as my button and text box are not in a group box, but in this situation the text box and the button are both in the same group box.
 
Last edited:
I can't reproduce the problem. I tried putting both in a group box, one or the other in the group box, both directly on the form, both in different group boxes, and it worked every time.
 
Marble_eater is there a specific code you need to add when trying to focus inside a groupbox
 
Last edited:
Back
Top