N
neemarr
Im trying to create a custom control that has a background and a few
icons drawn in it.
The background draws but the icons don't.
In my override OnPaint method I have:
e.Graphics.FillRectangle(new SolidBrush(CustomColors.CarouselBG),
this.ClientRectangle);
for(int i...)
{
e.graphics.DrawIcon(this.m_Icon, anXInsideClientRect,
aYInsideClientRect);
}
the icon is 32x32 icon and the client rectangle is much larger and it
can contain several icons of that size.
even if I don't do the FillRectangle, I still won't see my icons. The
bounds for the control were set at some point before that, and I am
positive the points I'm providing the DrawIcon are within the client
rectangle. I can give more details if you would like. Thanks
icons drawn in it.
The background draws but the icons don't.
In my override OnPaint method I have:
e.Graphics.FillRectangle(new SolidBrush(CustomColors.CarouselBG),
this.ClientRectangle);
for(int i...)
{
e.graphics.DrawIcon(this.m_Icon, anXInsideClientRect,
aYInsideClientRect);
}
the icon is 32x32 icon and the client rectangle is much larger and it
can contain several icons of that size.
even if I don't do the FillRectangle, I still won't see my icons. The
bounds for the control were set at some point before that, and I am
positive the points I'm providing the DrawIcon are within the client
rectangle. I can give more details if you would like. Thanks