When you create the GraphicsPath use the parameterized constructor and selet
the Winding fill-mode.
--
Bob Powell [MVP]
Visual C#, System.Drawing
The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm
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
"Damien Sawyer" <damiensawyer@yahoo.com.au> wrote in message
news:d87f49b0.0407191743.4696c9a4@posting.google.c om...[color=blue]
> Hi,
>
> I am creating a control. The control needs to be non-rectangular.
>
> I am creating a graphics path and then adding two overlapping ellipses
> to it using the addEllipse method.
>
> I then set this.region ('this' being the control) to a new region,
> passing my graphicspath object into the region constructor. This clips
> the control to be non-rectangular.
>
> The problem is that, when I add the second ellipse to the path, the
> area where the two ellipses overlap is 'negated' or 'toggled'. That
> is, I have a huge hole in the middle of my region!
>
> I basically am asking how I create a path that is the UNION of the two
> ellipses.
>
>
> This has been driving me nuts, so thanks in advance!
>
>
>
> Damien Sawyer[/color]