ListBox Showing Scroll if 1 item

  • Thread starter Thread starter tshad
  • Start date Start date
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
 
you can't, because it sets the of the number of visible options. 1 =
dropdown, anything > 1 is a list. there is no 1 row list support in a
browser.

-- bruce (sqlwork.com)
 
bruce barker said:
you can't, because it sets the of the number of visible options. 1 =
dropdown, anything > 1 is a list. there is no 1 row list support in a
browser.

-- bruce (sqlwork.com)
 
bruce barker said:
you can't, because it sets the of the number of visible options. 1 =
dropdown, anything > 1 is a list. there is no 1 row list support in a
browser.

That doesn't make much sense.

Why would they do that???

Thanks,

Tom
 
Back
Top