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

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