[Mono-bugs] [Bug 374713] ComboBox: PageUp/PageDown crash in Simple mode

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed May 21 05:51:44 EDT 2008


User andyhume32 at yahoo.co.uk added comment

--- Comment #4 from Andy Hume <andyhume32 at yahoo.co.uk>  2008-05-21 03:51:44 MST ---
Created an attachment (id=217175)
 --> (https://bugzilla.novell.com/attachment.cgi?id=217175)
List of all test scenarios and failures.

With Simple mode now working this won't occur. :-)

However it can be reproduced with other settings.  The list of all the tests I
did is attached.

In summary:

1a) Style=Simple mode, IntegralHeight=False, Size.Height=30
Now PageDn moves Up, and PageUp moves Down!
At the bottom of the list with PageUp (which moves down) that crash occurs!

1b) Also if one sets Style=Simple mode, IntegralHeight=False, and
Now PageUp and PageDown have no effect.

Another issue found in this testing:

2a) Style=Simple mode, IntegralHeight=False, Size.Height=50
On down-arrow at the bottom list the exception below occurs!

2b) With default IntegralHeight=True, setting Size.Height=50 rounds down to 42
(depended on font height)
Same as 2a.

I've extra logging in ScrollBar which shows that at this point: Value=16
set_Value=17 Min=0 Max=16
Unhandled Exception: System.ArgumentOutOfRangeException: '17' is not a valid
value for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'
Parameter name: Value
  at System.Windows.Forms.ScrollBar.set_Value (Int32 value) [0x000a8] in
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.ScrollBar:set_Value (int)
  at System.Windows.Forms.ComboBox+ComboListBox.Scroll (Int32 delta) [0x00073]
  at (wrapper remoting-invoke-with-check) ComboListBox:Scroll (int)
  at System.Windows.Forms.ComboBox.OnKeyDownCB (System.Object sender,
System.Windows.Forms.KeyEventArgs e) [0x00117] in
  at System.Windows.Forms.Control.OnKeyDown (System.Windows.Forms.KeyEventArgs
e) [0x0001c] in
  at System.Windows.Forms.ComboBox.OnKeyDown (System.Windows.Forms.KeyEventArgs
e) [0x00000] in
.. ...

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

More information about the mono-bugs mailing list