scml
asked on
ImageList Draw method problem
Hi everybody,
I have a PictureBox on which there is an image control with an image covering the whole PictureBox.
I am using:
ImageList1.ListImages(1).D raw Picture1.hDC, posX, posY, 0
in a loop to draw multiple small images.
The problem is that when I open a new window and then close it, all the small images drawn using the imagelist draw method are erased exactly at the position the other window occupied.
Your solutions would me much appreciated.
SCML
I have a PictureBox on which there is an image control with an image covering the whole PictureBox.
I am using:
ImageList1.ListImages(1).D
in a loop to draw multiple small images.
The problem is that when I open a new window and then close it, all the small images drawn using the imagelist draw method are erased exactly at the position the other window occupied.
Your solutions would me much appreciated.
SCML
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I tried your solution:
Picture1.AutoRedraw = True
Picture1.PaintPicture ImageList1.ListImages(1).P icture, posX, posY
and the drawing does not occur. But searching another source I found that it had to completed by:
Picture1.Refresh
Thanks
p.s.: for question: https://www.experts-exchange.com/jsp/qManageQuestion.jsp?
I am sending a comment.
Picture1.AutoRedraw = True
Picture1.PaintPicture ImageList1.ListImages(1).P
and the drawing does not occur. But searching another source I found that it had to completed by:
Picture1.Refresh
Thanks
p.s.: for question: https://www.experts-exchange.com/jsp/qManageQuestion.jsp?
I am sending a comment.
Picture1.AutoRedraw = True
Picture1.PaintPicture ImageList1.ListImages(1).P