Add input from textbox?

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim TextBox1 As String = "TextBox1.Text"
Dim TextBox2 As String = "TextBox2.Text"
If Button1.CanSelect Then
TextBox3.Text = TextBox3.Text & TextBox1 & vbCrLf
TextBox3.Text = TextBox3.Text & TextBox2 & vbCrLf
End If
End Sub

What is supposed to go into the RED parts to take the info(text) from the text boxs and add it to the TextBox3



Answer this question

Add input from textbox?

  • daimaku

    No I was told that the parts in the quotaint marks must me changed but what it has to be changed to I dont know.I have ideas of

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim TextBox1 As String = "TextBox1.Text"
    Dim TextBox2 As String = "TextBox2.Text"
    OR
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim TextBox1 As String = "(TextBox1.Text)"
    Dim TextBox2 As String = "(TextBox2.Text)"



  • jdang

    What do you want to do , these cases are right both.
    Tell me what are you looking for and I'll try to help you.


  • Dédé

    I don't know what do you want to do with this code, but I think you must edit it :
    Edited
    Use Environment.NewLine instead of vbCrLf is a strong recommendation.


  • Alex Farber

    Wow Thanks A LOT man it worked. I love this forum its about the only one that i get HELPFUL respones, Not ones with there own codes that either take forever to make it work with my own app or arent what I need.



    Thanks Guys for helping me out even though I'm asking A LOT of NOOB questions and that Im only 13


  • rapperux

    This is a picture if it helps http://i71.photobucket.com/albums/i154/WGMAN1100/untitled-1.jpg

  • jdang

    TextBox3.Text = TextBox1.Text & Environment.NewLine & TextBox2.Text


  • Add input from textbox?