Richtextbox basic vb.net 2003

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need some help...pleas
Can someone tell me how, using the richtextbox's Lines\String[]Array property, I can add text, line after individual line, at run time, to a richtextbox
I have search all of msdn and the KB and there is no example, good explanation of using the Lines\String[]Array propert
I am hoping to use a variables to hold the information for each line
Thanks
 
I don't really understand what you want to do, but I used that once in a
project, although I used a 'normal' Textbox and not a RichTextBox.

You can just access it like this: MyTextBox.Lines(0)

Although, strange thing is: if you use it like this, the performance is
really bad!! You better put the text of your textbox into a string, than do
all the changes to your string, and afterwurths copy the strign back to your
TextBox. Like this:
Dim strT As String()
'store the textbox in a string()
strT = txtText.Lines

I hope this helps? Otherwise try to explain your question a little more
explicit.

Pieter







Sam said:
I need some help...please
Can someone tell me how, using the richtextbox's Lines\String[]Array
property, I can add text, line after individual line, at run time, to a
richtextbox.
I have search all of msdn and the KB and there is no example, good
explanation of using the Lines\String[]Array property
 
Back
Top