Rounded Rectangle

J

JezB

I want to draw a rounded rectangle on a windows form's surface. Since there
don't seem to be any drawing shape controls provided, can I achieve the same
effect by adding some dummy control on the form to look like a rounded
rectangle? Or is my only option to get into custom controls and OnPaint
events and the like? I really just want something quick and simple.
 
G

Guest

For XP & higher Os's, you can easily create the MS Office themed appearance
for many controls(including buttons with rounded corners).

1. Set the FlatStyle property for the button (or any other control that has
that property) to System.

2. Insert the following:

Application.EnableVisualStyles();

just prior to the Application.Run statement.

I use that in my apps and got the technique from p. 62 of the featured book
on Bob Powell's first web Site:

"Windows Forms Programming in C#" by Chris Sells.

I would recommend that book as well.
 

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

Top