Solved

File List Box

Posted on 1999-01-09
4
164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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
Course of the Month11 days, 3 hours left to enroll

632 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