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).
 
hi,

thanks a lot . It is a bit lengthy but does work.
thanks

sanjay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

RichTextBox 2
Rounded Rectangle 2
Painting: rectangles or regions? 2
Rounded borders Rectangle 1
simple way to create rounded rectangle? 3
RichTextBox 3
Drawing Rounded Rectangles? 2
Regions and Windows XP 2

Back
Top