Hi,
I have a user control with a PictureBox that I want to draw a picture on from the outside. The picture displays the user control status so it varies from each instance of the user control.
I do not want to create one ImageList per user control, I'd rather just have one ImageList on the parent and draw on each child's (instance of my user control) PictureBox.
How do I best do this? Is there any way to expose a user control's PictureBox?
Something like:
parentIconList.ListImages(iconIndex).Draw child(i).PictureBox.hDC, 10, 10, imlTransparent
![[elephant2] [elephant2] [elephant2]](/data/assets/smilies/elephant2.gif)
graabein
I have a user control with a PictureBox that I want to draw a picture on from the outside. The picture displays the user control status so it varies from each instance of the user control.
I do not want to create one ImageList per user control, I'd rather just have one ImageList on the parent and draw on each child's (instance of my user control) PictureBox.
How do I best do this? Is there any way to expose a user control's PictureBox?
Something like:
parentIconList.ListImages(iconIndex).Draw child(i).PictureBox.hDC, 10, 10, imlTransparent
![[elephant2] [elephant2] [elephant2]](/data/assets/smilies/elephant2.gif)
graabein