Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / October 2004

Tip: Looking for answers? Try searching our database.

Automatically advance to next textbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gil - 27 Oct 2004 22:35 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.