Home > .Net, .Net 3.0 / 3.5 > Rounded rectangle Windows Form

Rounded rectangle Windows Form

Few days back in Kerala Microsoft Users Group, Shoban Kumar posted a question, how to create a rounded rectangle windows form, for his Codeplex project jata. And after few days some other guy comes up with some issues in my code. Now I decided to upload the sample project on my blog.

The implementation is like the following
1) Go to the Form’s Paint event.
2) create a Graphical path object.
3) Add rectangles and lines.
4) Set the Form’s region using the Graphical path.

You can download the code from here.(Download the file, and rename the doc to zip. This is because wordpress doesn’t allow to upload Zip files.)

You can view the post over here

The application screenshot.
sampleform

Categories: .Net, .Net 3.0 / 3.5 Tags:
  1. No comments yet.
  1. No trackbacks yet.