|
-
Nov 15th, 1999, 04:42 PM
#1
Thread Starter
New Member
I cannot manage to resize a listbox in the code to any particular size. It only allows me to resize it to whole lines. Any ideas on how to get rid of this restriction?
------------------
Daniel Rose
[email protected]
-
Nov 15th, 1999, 11:53 PM
#2
Junior Member
You may want to just change the font size according to the resize of the list box. If you use a smaller size font, you will be able to have more control on the height of the control. You might also want to try Larcom & Youngs Resize.ocx from www.vbextrax.com
-
Nov 15th, 1999, 11:54 PM
#3
Junior Member
Sorry, I spelled the site wrong. It is www.vbextras.com
-
Nov 16th, 1999, 12:53 PM
#4
Set the Listboxes IntegralHeight property to False and it will allow you to set the Height to any Value without Rounding it to the Nearest Full Character Height, eg.
Code:
Private Sub Command1_Click()
List1.Height = Rnd * (ScaleHeight - 200)
End Sub
Private Sub Form_Load()
Dim I As Integer
List1.Move 0, 0
Randomize Timer
For I = 1 To 100
List1.AddItem "Item " & I
Next
End Sub
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|