Doug Forster wrote:
> Hi Landley,
>
> Look up Graphics.SetClip and CombineMode.Exclude and see if that helps.
>
> Cheers
>
> Doug Forster
>
> "Landley" <news@creations-software.co.uk> wrote in message
> news:%23LytOefxEHA.1264@TK2MSFTNGP12.phx.gbl...
>
>>The problem is that the gradient on a third party control. So I do not
>>have
>>the details that I require to redraw it. Sorry, I should have mentioned
>>this.
>>
>>
>>"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
>>news:OV86zVfxEHA.3844@TK2MSFTNGP09.phx.gbl...
>>
>>>You'll have to re-draw the background. Calculating the right gradient for
>>>the rectangle is next to impossible.
>>>
>>>--
>>>Bob Powell [MVP]
>>>Visual C#, System.Drawing
>>>
>>>Answer those GDI+ questions with the GDI+ FAQ
>>>
http://www.bobpowell.net/gdiplus_faq.htm >>>
>>>The GDI+ FAQ RSS feed:
http://www.bobpowell.net/faqfeed.xml >>>Windows Forms Tips and Tricks RSS:
>>>
http://www.bobpowell.net/tipstricks.xml >>>Bob's Blog:
http://bobpowelldotnet.blogspot.com/atom.xml >>>
>>>
>>>
>>>
>>>
>>>
>>>"Landley" <news@creations-software.co.uk> wrote in message
>>>news:OOyjmSfxEHA.2040@tk2msftngp13.phx.gbl...
>>>
>>>>I have a panel with a gradient filled background. I have drawn a
>>>
>>>rectangle
>>>
>>>>on top in a solid color and wish to cut a smaller rectangle out it,
>>>>revealing the gradient filled background.
>>>>
>>>>I am having problems trying to find a method or brush that I can use
>>
>>that
>>
>>>>will in effect perform as an eraser.
>>>>
>>>>Can you help?
>>>>
>>>>
>>>
>>>
>>
>