• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • 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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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