T
tshad
I have a ListBox that I fill with data from my database. I then set the
number of rows attribute to the count so the box is only as large as the
number of fields.
lbDisplay.Rows = lbDisplay.Items.Count;
This works fine.
The problem is if the list has 1 item, it shows a dropdown arrow and when
you press it, it shows only the one item.
If there are 2 or more there is no dropdown arrow.
How can I get rid of the dropdown arrow for one entry???
Why does it even show?
Thanks,
Tom
number of rows attribute to the count so the box is only as large as the
number of fields.
lbDisplay.Rows = lbDisplay.Items.Count;
This works fine.
The problem is if the list has 1 item, it shows a dropdown arrow and when
you press it, it shows only the one item.
If there are 2 or more there is no dropdown arrow.
How can I get rid of the dropdown arrow for one entry???
Why does it even show?
Thanks,
Tom