How to change the insertion point ?

I'm trying to implement an automatic indentation. After the "CurrentLineChanged" event, I increase the current line indentation. A new tab is added but the cursor stay at the begin of the line.... (and the new user inputs are inserted BEFORE the tab...) What's the command line to put the cursor at the end of the line ? I've tried .CurrentColumn and .CurrentChar but it doesn'n work... Thanks for your help. private void EditCtrl_CurrentLineChanged(object sender, System.EventArgs e) { EditCtrl.IncreaseLineIndent(); }

1 Reply

AD Administrator Syncfusion Team August 19, 2003 02:03 PM UTC

Hi Stephane, You can move the caret to the end of the line by using the code below : this.editControl1.CurrentColumn = this.editControl1.GetColumnCount(int LineInQuestions); I have also updated your tech support incident #6166 on DirectTrac. Regards, Guru Patwal.

Loader.
Up arrow icon