Well, that seems to work globally, for the whole control, but I need to
be able to set different regions on different parts of the control. I
have scroll bars and if I reduce the region to where I want the
checkboxes confined, the scrollbars wont draw because they'll be
outside the region. I think the problem is I can draw my own graphics
fine, but as soon as OnPaint exits, all the scrollbars and checkboxes
draw and I don't have control over their clipping except globally with
Region. Is there a way to tell the child controls when to draw? Then
I could set the region, tell the checkboxes to draw, then increase the
region and tell the scrollbars to draw, then draw my own stuff. Is
that possible? What is the usual way to handle this situation?
Thanks,
-Brad
Tim Wilson UNDERSCORE AT PERIOD wrote:
> You should be able to use the "Region" property for this purpose.
> http://msdn.microsoft.com/library/de...egiontopic.asp
>
> --
> Tim Wilson
> .Net Compact Framework MVP