http://bugzilla.novell.com/show_bug.cgi?id=495678


           Summary: Setting Text on MaskedTextBox is cursor-dependent
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: i686
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


Created an attachment (id=286218)
 --> (http://bugzilla.novell.com/attachment.cgi?id=286218)
Test case

When setting the Text value of a MaskedTextBox, the text that should be set as
the whole thing ends up being inserted wherever the cursor is.

Steps to reproduce:
1. Compile and run the attached sample.
2. Press the blank button.  This sets Text to "2_/__/____", and since the
default position is at the start, it appears to work.
3. Place the cursor after the first /.
4. Press the blank button.

Results:

__/2_/____

Expected Results:

2_/__/____


[mono] ~ @ mono --version
Mono JIT compiler version 2.4 (/branches/mono-2-4/mono r131896 Thu Apr 16
10:11:30 EDT 2009)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
    TLS:           __thread
    GC:            Included Boehm (with typed GC)
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  x86
    Disabled:      none

-- 
Configure bugmail: http://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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to