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

How to change the insertion point ?

Thread ID:

Created:

Updated:

Platform:

Replies:

6406 Aug 12,2003 12:40 AM Aug 19,2003 10:03 AM Windows Forms 1
loading
Tags: EditControl
Stéphane BLANC
Asked On August 12, 2003 12:40 AM

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 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.

CONFIRMATION

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.

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.

;