Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to change windows form border color in c#?
Posted
Comments
Richard MacCutchan 9-Feb-15 3:54am    
Form (and other Windows) border colours are set by the system theme. It may be possible to change it by overriding the WM_NCPAINT message.

1 solution

The non-client area of Windows Forms are displayed using Windows' system settings that apply to all "standard" Windows.

Customizing the visual appearance of Form non-client areas, like the TitleBar, in C#, involves using low-level System facilities through API calls. It is complex.

Fortunately, there's a useful open-source library that will let you get these effects easily: [^].

If you really want to learn how to do this yourself, in addition to studying the source code of this library, you can read the three tutorials on the author of the library's blog: [^], [^], [^].
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900