[Mono-bugs] [Bug 360869] New: Setting TextBox. SelectionStart should disable select all on first focus

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 11 23:11:17 EST 2008


User jdpurcell2 at yahoo.com added comment

           Summary: Setting TextBox.SelectionStart should disable select all
                    on first focus
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jdpurcell2 at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

MS.NET 2.0 (didn't try in 1.0) won't select all text on first focus if:

1) SelectionStart has been set (even to 0 -- important).
2) SelectionLength has been changed.  So, if you just set it to 0, that's the
default and it didn't change.  But if you set it to 2, then back to 0, it will
disable select all.

#1 doesn't work in Mono, zero or not, and I'd love to see this fixed at least. 
#2 works except for the case of setting it non-zero and then back to zero, I
thought I'd mention it since I discovered it out of curiosity, but I can't
imagine a real program doing this.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list