Adjusting the Height of a listbox

aziz rasul

Active member
Local time
Today, 09:41
Joined
Jun 26, 2000
Messages
1,935
I want to increase\decrease the height of a listbox using two command buttons. Here's the code I've used behind the OnClick events.

Me.lstDistribution.Height = 5
Me.Refresh
Me.Repaint

Me.lstDistribution.Height = 2.5
Me.Refresh
Me.Repaint

When I press the 'Increase' or 'Decrease' buttons I get a horitzontal line replacing the listbox? Why is this happening?
 
probally because the height is in twips and the difference between them is so small that your box appears as a line.
 
Thanks for that. That put me on the right track. 2.54cm = 1440 twips.
 

Users who are viewing this thread

Back
Top Bottom