I am trying to advance to the next textbox when input for the current textbox
has reached its maximum length. In a different newsgroup I found this code
snipit, but I have not been able to use it.
Private Sub Text1_Change()
If Len(Me.Text1) = Me.Text1.MaxLength Then
Me.Text2.SetFocus
End If
End Sub
I use VS to program in VB.net, and this is for an aspx web page. The
problem is that SetFocus is not a member of
system.web.ui.webcontrols.textbox. I also tried 'focus', also to no avail.
TIA
Gil
W.G. Ryan eMVP - 27 Oct 2004 23:37 GMT
Remember that you are using a Server side control for this so the event
sequences and behavior are a weee bit different than they are in a Winforms
app. This however should help you
http://support.microsoft.com/default.aspx?scid=kb;EN-US;316719

Signature
W.G. Ryan, MVP
www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
> I am trying to advance to the next textbox when input for the current textbox
> has reached its maximum length. In a different newsgroup I found this code
[quoted text clipped - 12 lines]
> TIA
> Gil