Help with Paintpicture method
I want to use the paintpicture method but vb is giving me errors. What is wrong with this statement? When I run it, vb says "expected variable or function". Why is this? Is there a better way to output graphics?
Picture1.PaintPicture(PictureClip1.GraphicCell(W), 2, 3)
Thanks.
[email protected]
Re: Help with Paintpicture method
In this statement
Picture1.PaintPicture(PictureClip1.GraphicCell(W), 2, 3)
vb will interpret paintpicture as a function, not a sub. A function however requires a return value. My advise is to remove the braces () from the paintpicture.
So:
Picture1.PaintPicture(PictureClip1.GraphicCell(W), 2, 3)
should be changed into
Picture1.PaintPicture PictureClip1.GraphicCell(W), 2, 3
Tom Cannaerts
[email protected]
The best way to escape a problem, is to solve it.