Bugzilla – Attachment 171377 Details for
Bug 323384
'-1' is causing ArgumentException for ListBox
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
Proposed patch
ListBox.SelectedIndex -1.patch (text/plain), 743 bytes, created by
Thomas Wiest
on 2007-03-10 18:25:00 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Thomas Wiest
Created:
2007-03-10 18:25:00 UTC
Size:
743 bytes
patch
obsolete
>Index: class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs >=================================================================== >--- class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs (revision 74045) >+++ class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs (working copy) >@@ -441,7 +441,7 @@ > > if (value == -1) > ClearSelected (); >- else if (SelectionMode == SelectionMode.One) >+ else if (SelectionMode == SelectionMode.One) { > UnSelectItem (selected_index, true); > > if (value < top_index) >@@ -457,6 +457,7 @@ > } > } > SelectItem (value); >+ } > selected_index = value; > FocusedItem = value; > OnSelectedIndexChanged (new EventArgs ());
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 323384
: 171377