is there possible to save two picture box at the desame time in one command button?

To save a bmp file is quite easy -

SavePicture Picture1.Image, "C:Test.bmp"

'If Picture1.Image returns an error, use Picture1.Picture

For a jpeg (which is not featured in vb6) -

This code will save a picture box picture as jpg. I didn't write the code. Steve McMahon at the http//vbaccelerator.com did. It's his copywrite. I modified it so it can be anactivex.exe. It orignally was a class and a bas. The ijl11.dll is also required. This dll can be downloaded from the web.

Have a look at both attachments and see which works for you. Make sure the dll file is registered...:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.