DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Split a string between 4 textbox's

  1. #1
    Join Date
    Nov 2010
    Posts
    1

    Split a string between 4 textbox's

    I am trying to take a text string and split it evenly between 4 textbox's. When textbox1.text equals 53 or 56 or whatever characters I want, I need it drop down to the next textbox and continue filling that one up till that gets to the set # of characters then drop down to the next textbox. The trick is I need it to maintain wordwrap in each textbox. Any ideas? Thanks.

  2. #2
    Join Date
    Oct 2010
    Posts
    22

    Try This

    Create Form with Textbox array. In the textbox events try the following code.

    Code:
    Private Sub Text1_Change(Index As Integer)
    
    If Len(Text1(Index).Text) >= 4 Then
    Text1(Index + 1).SetFocus
    End If
    
    End Sub
    Hope that helps

Similar Threads

  1. Accessing Icons in the Image Folder
    By rrjii2000 in forum .NET
    Replies: 35
    Last Post: 09-08-2010, 01:02 PM
  2. Create a vCard
    By admol in forum .NET
    Replies: 0
    Last Post: 02-27-2007, 11:30 AM
  3. How do I detect an FTP timeout?
    By Julian Milano in forum VB Classic
    Replies: 2
    Last Post: 08-11-2000, 12:11 PM
  4. How do I detect an FTP timeout?
    By Julian Milano in forum VB Classic
    Replies: 0
    Last Post: 08-10-2000, 09:16 PM
  5. Replies: 0
    Last Post: 06-22-2000, 07:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center