Controlling a listbox height

C

Craig

I have a form with alot of comboboxes on it. Space is limited. One one
occurrence a have a listbox, so I can have multiple selections, on the form.
The current height is the same as the comboboxes .1667. When I write code to
expand the height on the GotFocus event, the listbox practically disappears.
My goal was to have it expand when it got the focus and when it lost focus it
would return to .1667 in height.

TIA
-Craig
 
A

Al Campagna

Craig,
Height, Width, etc.. may display as inches, but are set in value by twips (1" = 1440
twips)
A 2" high ListBox...
Me.lstBox.Hieght = 2880
--
hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."
 
M

Marshall Barton

Craig said:
I have a form with alot of comboboxes on it. Space is limited. One one
occurrence a have a listbox, so I can have multiple selections, on the form.
The current height is the same as the comboboxes .1667. When I write code to
expand the height on the GotFocus event, the listbox practically disappears.
My goal was to have it expand when it got the focus and when it lost focus it
would return to .1667 in height.


What are you setting the .Height property to?
 

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