Hi there,
This is not going to work server side. You have to do it client side using
Javascript to check the size of the text in the box. I am not sure if ASP.NET
will cause a postback after every key stroke. I think it does a postback
after the box looses focus. Never the less, you don't want postbacks back and
forth every time someone types something, do you?
Good luck!
--
Juan Romero
-----------------------------------------
The successful person has the habit of doing the things failures don't like
to do.
E.M. Gray
"DOTNETGUY" wrote:
What i am doing is pretty simple. I am writing a simple control that you
probably have seen on many websites. You have a phone number field ( 3
Textboxes ) if the size of the textbox text is = 3 move to the second text
box. My problem is: How do i tell my app to select the second text box?
Here is an example on what I have so far:
Private Sub txtPhone1_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles txtPhone1.TextChanged
If Len(txtPhone1.Text) = 3 Then
HELP!!!
End If
End Sub