Removing Scroll Bars from a Listbox on a Form

M

MikeM

I have a simple listbox (M, F), but when I try to reduce its size to just fit
the text both horizontal and vertical scroll bars fill up the box. How do I
eliminate them?
 
M

MikeM

MikeM said:
I have a simple listbox (M, F), but when I try to reduce its size to just fit
the text both horizontal and vertical scroll bars fill up the box. How do I
eliminate them?

I should have added: can it be done in the Listbox properties window, or
does it have to be done in code?
 
P

Peter T

Try making the ColumnWidths a tad less than the overall with, implicitly if
necessary. For the vertical scroll bar I think that would only appear if the
height does not accommodate all the rows.

Regards,
Peter T
 
M

MikeM

Thanks, Peter. I didn't notice the entry "ColumnWidths" in the Properties
window. It was blank, so I set it to a small number and got rid of the scroll
bars!
 

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

Top