[Mono-bugs] [Bug 661996] New: Hexadecimal NumericUpDown control only accepts the digits 0-9

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jan 2 10:58:31 EST 2011



           Summary: Hexadecimal NumericUpDown control only accepts the
                    digits 0-9
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: oliver.thimm at web.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development
           Blocker: ---

Created an attachment (id=406697)
 --> (http://bugzilla.novell.com/attachment.cgi?id=406697)
Test application to demonstrate the bug.

Description of Problem:

A hexadecimal NumericUpDown control just accepts the digits '0' to '9' and not
the digits 'A'-'F' as direct input. Any accepted value is converted from
decimal into hexadecimal, so entering 10 results in 'A' after pressing Enter.

Steps to reproduce the problem:
1. Compile and run the test code.
2. Any value containing 'A' to 'F' is discarded, any numerical value is
converted as decimal and dispalyed as hexadecimal value.

Actual Results:

Insert 'A'  -> Value discarded.
Insert '10' -> Value converted into 'A'

Expected Results:

'A' ramains 'A' and '10' remains '10'

How often does this happen? 


Additional Information:

The reson seems to be the implementation of NumericUpDown::ParseEditField()
where parsing the text is defined as

    Value = Check (Convert.ToDecimal (Convert.ToInt32 (Text, 10)));

if NET_2_0 is defined at compile time.

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