PNG picture files in VB

Posted on 2001-09-14
Last Modified: 2012-08-13
Need a way to view image files that is in PNG format.
The current VB image controls does not support the format,
or I'm missing something.
Can someone please point me in the correct direction.
Question by:MarioK
  • 3
  • 3

Expert Comment

ID: 6483196
you can try to ole view control with this class : MSPhotoEd.3 just drop ole view and select insert from file.
you can use webrowser control to load files.
LVL 22

Expert Comment

ID: 6483483
I asked this question many months ago and got various pieces that together allow my app to view PNG.  Actually, I compiled the code into an OCX component and then add it into my app.

Would you like the code, or would you rather just have the component?

Author Comment

ID: 6487060
That would be Great rspahitz,

Is it possible to send me both,
I would like to look at the code
but having the ocx can help alot.

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

LVL 22

Accepted Solution

rspahitz earned 25 total points
ID: 6488078
Go to and download the following:

The ocx and dependent zlib32 file:

The creation elements (must be accessed individually):

Note that the above should probably be added to a group project for testing.

Let me know if you have trouble getting them.


Author Comment

ID: 6488136
Thanks I got the PNGViewerControl.ocx & zlib32.dll files.
Did not find the ,The creation elements (must be accessed individually):

Would like to see them


LVL 22

Expert Comment

ID: 6488174
Try going like this for each of the above:

If you do this in IE, it will probably ask where you want to save it...pick a new folder and drop each in there.

If you do it in Navigator, it may show you the text of the document inside the browser at which point you can copy/paste.

Author Comment

ID: 6488220
Thanks rspahitz

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA Word macro - how to get characters after the searched for string 5 81
Access 2013 combo box not working 3 43
VBA Shell can't Find Word document 11 92
TT Auto Dashboard 13 91
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

815 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

11 Experts available now in Live!

Get 1:1 Help Now