Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I have searched all over for this
#6
Well, you need to combine the two bits of code.. So just insert this whole block into your form:

Code:
Sub rtb_changed handles RichTextBox1.TextChanged
reLine(RichTextbox1)
End sub

Sub reLine(ByVal rtb as richtextbox)
'Where textbox1 is the textbox on the side of the TextBox1.Text = ""
Dim i As Integer = 1
Do Until TextBox1.Lines.Count = rtb.Lines.Count
TextBox1.AppendText(i.ToString + vbNewLine)
i = i + 1
Loop
End sub

And make sure that the textbox on the left is called textbox1
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
I have searched all over for this - by VicDesigns - 08-05-2011, 03:47 AM
Re: I have searched all over for this - by brandonio21_phpbb3_import2 - 08-05-2011, 09:14 PM
Re: I have searched all over for this - by xolara - 09-09-2011, 09:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)