clebo99
asked on
Simple VB6 PictureBox Display - Selecting Picture in Code, not picturebox properties.
Let's say I have a jpg file in my c:\temp directory called hockey.jpg. I have a picturebox (called picture1). How do I tell the box to display c:\temp\hockey.jpg via coding instead of selecting it in the picturebox properties? I thought it would be something like:
picture1.picture = 'c:\temp\hockey.jpg' but that is not working.
Chris, Baltimore
picture1.picture = 'c:\temp\hockey.jpg' but that is not working.
Chris, Baltimore
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Or use the PaintPicture method to scale it - see help file for details
Picture1.PaintPicture LoadPicture(ipath), destx, desty, destwidth, destheight, clipx, clipy, clipwidth, clipheight, opcode
Picture1.PaintPicture LoadPicture(ipath), destx, desty, destwidth, destheight, clipx, clipy, clipwidth, clipheight, opcode
ASKER