Q
Q. John Chen
I have a ListBox only to display list of data and do not want user to
select anything.
I set the SelectionMode to None. It worked as expected.
But, when I close the window. The generated Dispose method raises an
ArgumentException:
Cannot call this method when SelectionMode is SelectionMode.NONE.\r
\nParameter name: SelectedIndex
How can I avoid this?
Thanks
John
select anything.
I set the SelectionMode to None. It worked as expected.
But, when I close the window. The generated Dispose method raises an
ArgumentException:
Cannot call this method when SelectionMode is SelectionMode.NONE.\r
\nParameter name: SelectedIndex
How can I avoid this?
Thanks
John