i need textbox show text same MSN in messaing form
i need cursor focus in last line of textbox
function WinFormattedTextEditor.text += "XX" cursor will focus in first line.
You could try setting the the EditInfo.SelectionStart property to control where the cursor appears. You could also try using one of the various actions through the PerformAction method on the control.
-Matt
thanks for help
pls sample code for me?
You set the SelectionStart property based on how many characters into the text you want the cursor to be, i.e.
this.ultraFormattedTextEditor1.EditInfo.SelectionStart = this.ultraFormattedTextEditor1.Text.Length;
The PerformAction methods can be invoked such as the following:
this.ultraFormattedTextEditor1.PerformAction(Infragistics.Win.FormattedLinkLabel.FormattedLinkEditorAction.LineEnd, false, false);
I'm not sure exactly how you would get the funtionality that you want in terms of cursor placement, but you may be able to play around with these methods/properties to see if they'll be of help.