L
lgbjr
Hi All,
I've got a listbox on a VB.NET form. when the form opens, the ListBox
SelectionMode is set to Single. while running various routines on the form,
items get added to the list box (results of computations, etc).
when all of the calculations are complete, I'm trying to change the listbox
selection mode from single to MultiExtended, using:
myListBox.SelectionMode=SelectionMode.MultiExtended
However, it's not working. I can still only select one item.
By the way, the reason I start with the listbox selection mode set to single
is that as items are added to the listbox, I always have the last item
selected:
myListBox.SelectedIndex=myListbox.Items.Count-1
this way, as items are added, the list automatically scrolls, so the latest
information is always visible.
But, when the calcs are finished, I want the user to be able to select
whatever they want and copy/paste elsewhere, which is why I'm trying to
switch to MultiExtended
Also, by the way, if I start with the SelectionMode set to MultiExtended, I
can select multiple items, so it's only switching from one to the other that
isn't working.
Any Ideas?
tia
Lee
I've got a listbox on a VB.NET form. when the form opens, the ListBox
SelectionMode is set to Single. while running various routines on the form,
items get added to the list box (results of computations, etc).
when all of the calculations are complete, I'm trying to change the listbox
selection mode from single to MultiExtended, using:
myListBox.SelectionMode=SelectionMode.MultiExtended
However, it's not working. I can still only select one item.
By the way, the reason I start with the listbox selection mode set to single
is that as items are added to the listbox, I always have the last item
selected:
myListBox.SelectedIndex=myListbox.Items.Count-1
this way, as items are added, the list automatically scrolls, so the latest
information is always visible.
But, when the calcs are finished, I want the user to be able to select
whatever they want and copy/paste elsewhere, which is why I'm trying to
switch to MultiExtended
Also, by the way, if I start with the SelectionMode set to MultiExtended, I
can select multiple items, so it's only switching from one to the other that
isn't working.
Any Ideas?
tia
Lee