GroupBox background

SSb

Member
Joined
Sep 28, 2005
Messages
14
Programming Experience
Beginner
Hi all,
I have a GroupBox whose background I would like to make white. If I simply set the BackgroundColor property to white the background does becomes white but it always seem to be bigger than the actual box i.e. the white background extends outside the horizontal lines that mark the edges of the GoupBox. Similar is the case if I set a picture as the GroupBox's background, the picture extends beyond the actual box.

Is there a way I can limit the white color or the picture to just within the actual boundaries of the box ?

Thanks,
Saurabh
 
If you think the horizontal lines mark the edges of the GroupBox then you've been framed. How it works is: The background is drawn first all over the control, then a rectangle ('box') is drawn inside the control, then text drawn on top of the drawn box. So, there is no setting to draw different stuff outside and inside the 'box' unless you do the drawing yourself.
 
Back
Top