Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic InPlaceEditing cursor positioning (Read 1564 times)
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 136
Location: England
Joined: Oct 23rd, 2006
InPlaceEditing cursor positioning
Dec 18th, 2006 at 2:16pm
Print Post  
Is it possible to automatically position the cursor after the last character when starting InPlaceEditing?

Thanks,
DavidL
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: InPlaceEditing cursor positioning
Reply #1 - Dec 18th, 2006 at 5:20pm
Print Post  
Yes, you can do this by handling the EnterInplaceEditMode event.

Code
Select All
private void fc_EnterInplaceEditMode(object sender,
   MindFusion.Diagramming.WinForms.InplaceEditArgs e)
{
   e.TextBox.SelectionStart = e.TextBox.Text.Length;
}
 



Stoyan
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 136
Location: England
Joined: Oct 23rd, 2006
Re: InPlaceEditing cursor positioning
Reply #2 - Dec 20th, 2006 at 8:47am
Print Post  
Thanks, that works well.  Smiley
DavidL
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint