"Sanjay" <sanjays.singh@gmail.com> schrieb:
> I want to create RoundRectRegion in .net.
> We used to have createRoundRectRegion API in vb6.
> Does .net frameWork has anything to achieve the same.I also don't find any
> method to
> create Rounded Rectangle.
You can create a 'GraphicsPath' of appropriate shape (code shown in
<URL:http://dotnet.mvps.org/dotnet/code/graphics/#RoundCorners>) and then
create a 'Region' object based on the path (see 'Region''s constructors).

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Sanjay - 08 Apr 2005 10:44 GMT
hi,
thanks a lot . It is a bit lengthy but does work.
thanks
sanjay
> "Sanjay" <sanjays.singh@gmail.com> schrieb:
> > I want to create RoundRectRegion in .net.
[quoted text clipped - 6 lines]
> <URL:http://dotnet.mvps.org/dotnet/code/graphics/#RoundCorners>) and then
> create a 'Region' object based on the path (see 'Region''s constructors).
GDI+ FAQ

Signature
Bob Powell [MVP]
Visual C#, System.Drawing
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
> hi,
>
[quoted text clipped - 6 lines]
>
> sanjay singh