Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Different behavior of text selection when tabbing into an UltraTextEditor
posted
Hi,
  I'm seeing different text selection behavior in the WinForms UltraTextEditor between Infragistics 7.3.20073.1043 and 12.1.20121.2075.  Here is the scenario:
  • there are two UltraTextEditors on a Form with no text in them by default
  • enter some text in the second editor
  • then put focus in the first editor 
  • then tab from the first editor to the second
  • in version 7.3 ALL of the text in the second editor is selected and highlighted but in version 12 NO text is selected and the caret is located where it was last located in that field (in this case at the end of the text)
  • I would like the behavior of 7.3 
Is this a known difference in behavior? Is there a way to globally change the behavior in version 12 back to the behavior of 7.3?
Thanks,
John
Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi John,

    The original (7.2) behavior you describe was a bug. The inbox TextBox control remembers the last SelectionStart and SelectionLength values that it had when the user left the control and restores those values when the user re-entered the control. So we fixed it to do what the TextBox does.

    Georgi's code should work to get the old behavior back.

Children