Rounded Rectangle Region

  • Thread starter Thread starter Sanjay
  • Start date Start date
S

Sanjay

hi,

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.
plz suggest me how to go about it.

sanjay singh
 
Sanjay said:
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).
 
Back
Top