Click here to Skip to main content
14,699,886 members
Please Sign up or sign in to vote.
1.82/5 (3 votes)
See more:
textbox 1, 2 and 3 are the text boxes.
"one two three four five six seven eight nine ten" are words in the text box 1.

how to put word text box 2 and text box 3 should be fill with word from text box 1 . After filling the text box2 completely the next textbox 3 should be filled?
Posted
Updated 19-May-14 11:22am
v2
Comments
   
So, what is the issue?
[no name] 19-May-14 14:38pm
   
Surely your homework assignment instructions were more clear than that?

Handled the keypress event from the firts textbox... and put the value in the others two...

example(Keypress):

Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
     Dim valueTextBox1 As String
     valueTextBox1 = Me.TextBox1.Text
     Me.TextBox2.Text = valueTextBox1
     Me.TextBox3.Text = valueTextBox1
 End Sub


or with the event text change.....
Private Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
      Dim valueTextBox1 As String
      valueTextBox1 = Me.TextBox1.Text
      Me.TextBox2.Text = valueTextBox1
      Me.TextBox3.Text = valueTextBox1
  End Sub
   
Comments
waruna 92 21-May-14 11:36am
   
I want part of the TextBox1's text in TextBox2 and another part in TextBox3, not the same text in all TextBoxes
Build your own control and include 2 text box in it
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900