Opening a directory at Once and altering files

Posted on 1999-07-19
Medium Priority
Last Modified: 2010-04-30
I need to open a whole directory at once (not just one file) that all have the same extension (.bmp) and alter the pictures (make them transparent, then save to a new file).  Is there a way to do this that any of you know about?  Thanks
Question by:peterma
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

Accepted Solution

ebelusa earned 140 total points
ID: 1525853
  You'll need to open each file one by one. A quick [albeit dirty] way to do this is set a DirList control to filter only the .bmp files in the .Path directory, and then open each file from that list. In terms of making them transparent, that's up to you - do BMP's even support transparency? If you need sample code, I'll provide it.
-Benjamin Stiglitz

Author Comment

ID: 1525854
I'll work on it by myself, but if you could provide some sample code that would be great.

Expert Comment

ID: 1525855
I believe I solved that problem from your other question. And actually, ebelusa put pretty much the same thing I did, but the DirList box should have been a FileList box. The DirList box doesn't give you file names.

Author Comment

ID: 1525856
Like I said before, I don't think i'll be able to do any of what i really intended to do in VB.  I can't create a transparent bitmap..they don't support it.  I have to change them all to Icons, and use those in my application. any thoughts?

Featured Post

Independent Software Vendors: 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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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

719 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