Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

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.

Edited by mhrappstead
  • Leaders
Posted
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.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...