We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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 10:03 AM

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.
Live Chat Icon For mobile
Up arrow icon