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

Insertion point

Thread ID:

Created:

Updated:

Platform:

Replies:

3989 Apr 22,2003 05:34 PM UTC Apr 25,2003 05:09 AM UTC Windows Forms 3
loading
Tags: EditControl
Ivan Pelly
Asked On April 22, 2003 05:34 PM UTC

The default seems to be to have the insertion point appear at the end of the text - how does one programmatically put it at the beginning of the text? Thanks!

Administrator [Syncfusion]
Replied On April 24, 2003 03:01 AM UTC

Hi Ivan, Could you please give more details on the edit behavior you want to achieve? Do you mean whenever you paste some text, caret should appear at the beginning of the pasted text? Thanks. Syncfusion Technical Support > The default seems to be to have the insertion point appear at the end of the text - how does one programmatically put it at the beginning of the text? Thanks!

Ivan Pelly
Replied On April 24, 2003 11:58 AM UTC

I have the editcontrol on a form, and in the form_Load I set the .text property of the control to some value. When the form appears, the insertion point is at the end of the text, and the textbox is scrolled to the end - I'd like it to be at the beginning - can that work? Thanks!

Administrator [Syncfusion]
Replied On April 25, 2003 05:09 AM UTC

Hi Ivan, Please try the following lines of code when you set the text of the control, e.g., editControl1.Text = "Some text"; editControl1.CurrentLine = 1; editControl1.CurrentChar = 1; editControl1.ScrollToViewCaret(); Thanks for choosing Syncfusion. Syncfusion Technical Support > I have the editcontrol on a form, and in the form_Load I set the .text property of the control to some value. When the form appears, the insertion point is at the end of the text, and the textbox is scrolled to the end - I'd like it to be at the beginning - can that work? Thanks!

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.

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

;