ListBox Showing Scroll if 1 item

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
 
B

bruce barker

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)
 
T

tshad

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)
 
T

tshad

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top