Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

File List Box

Posted on 1999-01-09
4
Medium Priority
?
166 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 400 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…
Suggested Courses

916 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