I want to add LinkLabel-s at the end of the text in RichTextBox control.I do that with this code:
CODE
int index = richTextBox1.Text.Length;
Point position = richTextBox1.GetPositionFromCharIndex(index);
LinkLabel label = new LinkLabel();
label.Text = "whatever";
label.AutoSize = false;
label.Location = position;
label.LinkBehavior = LinkBehavior.NeverUnderline;
richTextBox1.Controls.Add(label);
*edit: Please use code tags next time.

The problem here is that i do not know how to add text right after the last added LinkLabel,i.e. i want when add LinkLabel to move the caret next to the LinkLabel.How to do that?
This post has been edited by Martyr2: 27 Nov, 2007 - 10:51 AM