[Mono-list] Windows Forms ListBox not valid value for SelectedIndex property.
Ventsislav Mladenov
ventsislav_mladenov at sf.stemo.bg
Fri Apr 27 07:32:48 EDT 2007
I have a program that used ListBox component and when i try to set -1 to SelectedIndex property i get exception :
<<System.ArgumentException: '-1' is not a valid value for 'Value'. 'Value' should be between 'Minimum' and 'Maximum' >>
On Microsoft implementation of ListBox, it deselect current selected item and I think that this is the proper behavior because i don't have a way to remove selection in the ListBox.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070427/ce3f771d/attachment.html
More information about the Mono-list
mailing list