How to change (set) border color on a form in an application...

G

Guest

I want my application to have a special color on the Window forms borders.
Not the standard one (which the user has set up in his desktop-properties)...
How can I do this? I can change background/foreground colors etc and the
border also have some propereties, but not the color and shading...

Claes
 
M

Morten Wennevik [C# MVP]

Hi Claes,

The border is drawn by Windows, but you can set FormBorderStyle to None and draw a border yourself in the PaintBackground event. However, removing the border also removes the ability to resize, move and a bunch of other handy features which you will have to code yourself.

Anyway, why do you want to change the Windows border color for a single application? This is one of the things a user should be able to define himself as a global setting.
 
G

Guest

I have a similar situation where a client is determined to control the color
scheme for his application. He has a nice theme picked and then we have a
blue or whatever the user selects around it. I would also like to change the
color but don't want to have to recode the form with my own border (which
means code for dragging and resizing).

Tim
 
G

Guest

Well, in this case the users cannot change their settings (locket)...and as
the default windows-colors don't match the once in the app I would like to
change it just for cosmetic reasons!

"ClaesWedin"
 

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