Added Lines in RichTextBox with button

How do I do this:
everytime I press this button i need it to add a line in a RichTextBox (or something else)
I tried
history.Text = "Sarted Game"
but that deleted the previous conrent and replaced it with Started Game. Should I even use RichTextBoxes
I am going to eventually need to variables to the lines...how can i do this




Answer this question

Added Lines in RichTextBox with button

  • plexed

    Or you can use the new c style operators...  Makes for cleaner shorter code.

    dim str as String = "Hippos are really big"
    RichTextBox1.Text &= vbNewLine & str

    Dustin


  • WilliamCarver


    Dim str as string = "Stop War NOW"
    Richtextbox.text = Richtextbox.text & vbcrlf & str

  • Added Lines in RichTextBox with button