Change a controls Border (width and color) on standard Winform Controls

A

aarongoodman

Does anyone know how to change the color and width of a control's
border when specifying BorderStyle.FixedSingle etc... Is there an EASY
way to change the Brush color or alter the Pen width from the default?

Does anyone know where the default comes from?


//This draws a simple black border around the control
panel1.BorderStyle = BorderStyle.FixedSingle;

//How do I draw the same border around the control where I choose the
Brush and the Pen width?

Thanks in advance!
 

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