I understand that I could 'add' lines to the rich text box either by repreated assignments to the rich text box Text property e.g RichTextBox1.Text = "Line 1 xxxxxx" or by using the Lines array e.g.. myLines(0) = "[using Lines] Line 1 xxxxxx" , myLines(1) = "[using Lines] Line 2 yyyyyy"
Does either method have any particular advantages over the other? If I use the Lines array do I need to bother about inserting new line chracaters into the data?
Are there any decent tutorials on how to use the rich text box in this way? Is this an appropriate use of a rich text box?
You can't use the Lines property, it doesn't have an Add() method. Use AppendText("\n" + "another line"). I wouldn't use an RTB for this, but just draw the text in a scrolling panel's Paint event. But RTB will work too.
You can't use the Lines property, it doesn't have an Add() method. Use AppendText("\n" + "another line"). I wouldn't use an RTB for this, but just draw the text in a scrolling panel's Paint event. But RTB will work too.