Rounded Rectangle

  • Thread starter Thread starter JezB
  • Start date Start date
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.
 
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.
 
Back
Top