VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Load-a-Pic

by John Bowles (12 Submissions)
Category: Graphics
Compatability: VB 6.0
Difficulty: Intermediate
Originally Published: Sat 15th September 2018
Date Added: Tue 9th February 2021
Rating: (1 Votes)

this is a way to load a picture without the need for the commondialog.ocx . instead, it uses api in a .bas module. it is somewhat commented in the module but is pretty straight forward. it will only work with .jpg, .gif & .bmp which is a limitation of vb6 to only handle those 3 formats. I did not include a picture as it only uses an imagebox (because it stretches to fit images) & a command button on a form. this is the bare minimum. if you wanted you could add save its there in the module but do not remove as I have already striped down and those functions rely on each other to load the picture to be seen.hope it helps Note: a couple of things i would like to add is that this is great because I use this in several of the progs i have uploaded here so you can see that it can be built on & used in many apps without the annoyance of the cmndlg and that with but a simple change in the filter, you can use it for not only pics but any files ex: .txt, .doc, .pdf or if you want you can use *.* which covers all types, thanks again

Rate Load-a-Pic

Download Load-a-Pic

Download Load-a-Pic (4 KB)

Load-a-Pic Comments

No comments have been posted about Load-a-Pic. Why not be the first to post a comment about Load-a-Pic.

Post your comment

Subject:
Message:
0/1000 characters