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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

PNG picture files in VB

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.
0
MarioK
Asked:
MarioK
  • 3
  • 3
1 Solution
 
rkot2000Commented:
you can try to ole view control with this class : MSPhotoEd.3 just drop ole view and select insert from file.
or
you can use webrowser control to load files.
0
 
rspahitzCommented:
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?
0
 
MarioKAuthor Commented:
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.

MarioK
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
rspahitzCommented:
Go to www.mjscreations.com/rjscreations/sdplug/ and download the following:

The ocx and dependent zlib32 file:
PNGViewerControl.ocx
zlib32.dll

The creation elements (must be accessed individually):
PNG.gif
PNGViewer.ctl
PNGViewer.ctx
PNGViewerControl.vbp
cPNG.cls

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

Let me know if you have trouble getting them.

0
 
MarioKAuthor Commented:
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

MK

0
 
rspahitzCommented:
Try going like this for each of the above:

www.mjscreations.com/rjscreations/sdplug/PNGViewer.ctl

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.
0
 
MarioKAuthor Commented:
Thanks rspahitz
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now