Image in box vb6 zoom controls

Asked By 0 points N/A Posted on -

I just have a simple question with vb6 zoom controls. I want to get zooming effect for an image I’ve added on a photo box.

Answered By 0 points N/A #196400

Image in box vb6 zoom controls


Hello Kennedy Rudy,


This is a Visual Basic Code for zooming in and out in the picture box using 2 Command Buttons and 2 Picture Boxes, Picture1 Visible is set as "False" and Picture2 Visible is set as "True".

Basically, whenever you click "Zoom In", the height and width of the Picture2 increases by 20%, then copy the image source of Picture1 to Picture2. Picture1's Dimensions only serve as reference for Picture2.

The same is true for "Zoom Out", only that it decreases by 20%.

You can modify this if you want other results like putting the zooming in a mouse scroll.

Hope this helps.

Login/Register to Answer

Related Questions