Solved

File List Box

Posted on 1999-01-09
4
159 Views
Last Modified: 2010-05-03
When resizing a file listbox or a directory list box, the size you input is not the size you get.  It seems to round the number up or down to the nearest 225 twips or so.  Is there any way around this?  I'm using vb4-32.
0
Comment
Question by:bilcrete
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
idcanada earned 100 total points
ID: 1455131
No, no workaround.
Still in VB5 & 6 same issue.

I guess it is because of the files... so you do not get one that is halfy displayed.


Happy programming.
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1455132
Umm, there is (on some controls an .IntegeralHeight property that forces the size to be a multiple of the current font's height. Dunno about this specificially on a file listbox, but if you set it False you get much finer control over the sizing.

M

0
 

Author Comment

by:bilcrete
ID: 1455133
Okay then...if there is no real fix, are there any ocx's that don't have this glaring flaw.  If not,what I'm triing to get accomplished is to use a frame, narrowed down to a bar, and have my file/dir list box resize according to the relative position of the frame. Since the two boxes will resize and then change their minds and then resize, I end up with a flicker.  Any ideas on a work around for this problem?
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1455134
Turn .Visible to False while you resize up & down. Have the default value of the property be False, only switch to True when you're done tinkering with size.

M

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB6 code to programmatically convert pdf to excel 21 70
VBA color chart bars 12 79
Excel VBA combine two working workbooks 8 49
Windows 10 start screen issues 9 52
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now