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.

programatic cursor

Thread ID:

Created:

Updated:

Platform:

Replies:

36480 Oct 31,2005 07:43 PM Nov 1,2005 08:40 PM Windows Forms 4
loading
Tags: EditControl
Bill Brennan
Asked On October 31, 2005 07:43 PM

How can I set the cursor in the syntax editor to appear at a specified line and column programatically?

Administrator [Syncfusion]
Replied On November 1, 2005 10:44 AM

Hi Bill, You could use the CurrentPosition property or a combination of CurrentLine and CurrentColumn properties in the EditControl for this purpose : this.editControl1.CurrentPosition = new Point(7,10); OR this.editControl1.CurrentColumn = 10; this.editControl1.CurrentLine = 7; I have attached the latest copy of Essential Edit Users Guide here. Please refer to the sub-section - Positions and Offsets under Features in the users guide for more information in this regard. Let me know if you need any other information. We appreciate your interest in Essential Edit. Regards, Guru Patwal Syncfusion, Inc.

Bill Brennan
Replied On November 1, 2005 11:49 AM

I reviewed the section you referred me to, but I''m affraid I''ve already tried this. I have several docked windows in a form and when I handle an event from a seperate docked window I want the cursor to show up in the editor at a specific line. I tried activating the docking window and the tab containing the editor and then setting the line at which the cursor should appear, but this doesn''t work. Any suggestions? >Hi Bill, > >You could use the CurrentPosition property or a combination of CurrentLine and CurrentColumn properties in the EditControl for this purpose : > >this.editControl1.CurrentPosition = new Point(7,10); > >OR > >this.editControl1.CurrentColumn = 10; >this.editControl1.CurrentLine = 7; > >I have attached the latest copy of Essential Edit Users Guide here. Please refer to the sub-section - Positions and Offsets under Features in the users guide for more information in this regard. Let me know if you need any other information. We appreciate your interest in Essential Edit. > >Regards, >Guru Patwal >Syncfusion, Inc.

Bill Brennan
Replied On November 1, 2005 12:39 PM

I figured this out. I wsa using the selected method to activate the control instead of focus. What is the difference? >I reviewed the section you referred me to, but I''m affraid I''ve already tried this. I have several docked windows in a form and when I handle an event from a seperate docked window I want the cursor to show up in the editor at a specific line. I tried activating the docking window and the tab containing the editor and then setting the line at which the cursor should appear, but this doesn''t work. Any suggestions? > >>Hi Bill, >> >>You could use the CurrentPosition property or a combination of CurrentLine and CurrentColumn properties in the EditControl for this purpose : >> >>this.editControl1.CurrentPosition = new Point(7,10); >> >>OR >> >>this.editControl1.CurrentColumn = 10; >>this.editControl1.CurrentLine = 7; >> >>I have attached the latest copy of Essential Edit Users Guide here. Please refer to the sub-section - Positions and Offsets under Features in the users guide for more information in this regard. Let me know if you need any other information. We appreciate your interest in Essential Edit. >> >>Regards, >>Guru Patwal >>Syncfusion, Inc.

Administrator [Syncfusion]
Replied On November 1, 2005 08:40 PM

Hi Bill, Thanks for the update. We are glad that you could work around this problem. Basically the Select and Focus methods in the EditControl should do the same task. I have created a test sample as per my understanding of your specifications and have attached it here. Please modify the sample to show this issue and send it back to us. We will further investigate it here and suggest an appropriate solution. We appreciate your cooperation. Regards, Guru Patwal Syncfusion, Inc.

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.

;