Possible Duplicate:
How does Windows change Aero Glass color?
using c# how do you programmatically change the windows border color when running aero on windows 7?
It is not possible to change the color of a window individually but you can change the color OS-wide via the resgistry. The entry should be something like this: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Glass Colorization\Swatches
in conjunction with HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM - ColorizationColor
From within your code you can only adjust the shape and the size of your Glass border but I don't think the color. In Windows Forms it is done like this and in WPF like this.
This isn't possible with C#/.NET. WPF/WindowsForms only allow you to change the borders on elements inside the application. Application borders are user-controlled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With