Hallo,
I need help on the way to display several images in a picturebox control.
Thanks for helping
James
Printable View
Hallo,
I need help on the way to display several images in a picturebox control.
Thanks for helping
James
Do you mean you want to display different pictures at different times in one picture box? What you will need is an Image list, you can add that control through projects....components. From there you can use certain events to change the picture or even a timer.
thank for your answer, but it is not what I mean. The thinks it that I want to display several images. May be in a unique scrollbar picturebox.
The problem is not the scrollbar picture but the way to display for example four images in a picturebox.
Thanks again
Try the Paintpicture event.
ENSURE that the autoredraw is true. The only thing with this option is it helps to know what each size of the photos will be, this way you can postion each one without overlapping them.Code:Picture1.PaintPicture LoadPicture("c:\yourpic1.jpg"), 0, 0
Picture1.PaintPicture LoadPicture("c:\yourpic2.gif"), 600, 0
good luck.
Sorry Jamesa, here is an aliby.
PictureBox.PaintPicture picture, x1, y1, [width1, height1, [x2, y2, _
[width2, height2, [opcode]]]]
so you could specify each size in your paintpicture call
Code:Picture1.PaintPicture LoadPicture("c:\yourpic1.jpg"), 0, 0,400,400
'the zeros are the vertical and horizontal positions and the 400's are the dimensions you make the picture. remember, the numbers correspond to the scalemode, ie.. pixel, twips ect..