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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the insertion point ?

Thread ID:





6406 Aug 12,2003 04:40 AM UTC Aug 19,2003 02:03 PM UTC WinForms 1
Tags: EditControl
Stéphane BLANC
Asked On August 12, 2003 04:40 AM UTC

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(); }

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon