how to paint only a piece of the background?

  • Thread starter Thread starter Jeroen Ceuppens
  • Start date Start date
J

Jeroen Ceuppens

Hi,

I want this:
the function
protected override void OnPaintBackground(PaintEventArgs e)

should only paint the background in 2 rectangles

How should I fix that?

Greetz

JC
 
Hi Jeroen,

This method will draw the region specified by e.ClipRegion which is set by
invalidating regions of the screen. You can either customize the
method yourself and remove the base call or call invalidate for the regions
you want to update.

What is the scenario you are trying to get out of this? Maybe there is a
different way to go about it.

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top