Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8673401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:27:00+00:00 2026-06-12T19:27:00+00:00

User Entry like this textbox1.text = 01/02/03/…… I want to display the values separately

  • 0

User Entry like this

textbox1.text = 01/02/03/......

I want to display the values separately in 3 textbox like this

After "/" it should move to next row

txt1.text =  01
    txt2.text = 02
   txt3.text =  03
    ....

How to do this.

Need Vb.net code help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:27:01+00:00Added an answer on June 12, 2026 at 7:27 pm

    Option 1

    If it’s always 3 text boxes, you could just write static code for each text box, like this:

    'EDIT: This code now checks for the existence of a second or third value to avoid
    'out of bounds errors
    Dim originalValue As String = "01/02/03"
    Dim splitBySlash As String() = originalValue.Split("/")
    
    txt1.Text = splitBySlash(0)
    If splitBySlash.Length > 1 Then txt2.Text = splitBySlash(1)
    If splitBySlash.Length > 2 Then txt3.Text = splitBySlash(2)
    

    Option 2

    If you have a variable number of text boxes based on the slashes, you’ll have to create them at run time and add them to the parent control, like this:

    'You can enter as many (or few) slashes as you like in this code, it will automatically
    'adjust the text boxes created as necessary.
    Dim originalValue As String = "01/02/03" 'could go on like /04/05/etc
    Dim splitBySlash As String() = originalValue.Split("/")
    
    For Each value As String In splitBySlash
        Dim newTxt As New TextBox()
        newTxt.Text = value
    
        yourParentControl.Controls.Add(newTxt)
    Next
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want a functionality ,where user can enter some text in a textbox,and based
I want to use AutoCompleteExtender with textbox to auto complete user's entry from mysql
I want to send ViewData.model to Special action with the last user data entry.
In JS if you would like to split user entry into an array what
I got a model defined like this: class LogEntry(models.Model): text = models.CharField(max_length = 20)
I will like to validate user entry to ensure they are integers. How can
How can I undo or revert an user entry on a QTableView popuplated by
I have two models -- User and Entry -- that are related through a
When my user press Enter on the virtual android user validate entry! keyboard my
For example: The list is list of Users First entry: User -> Id=111 name=aaa

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.