Solved

File List Box

Posted on 1999-01-09
4
157 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

707 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

16 Experts available now in Live!

Get 1:1 Help Now