I don't have time to code it myself, but if you start with this article - http://www.codeproject.com/dialog/gradienttitlebar.asp[^] - you should be able to determine the system colour for the active dialog titlebar and use it instead of the gradient painting. Cheers, Tom Archer Inside C#,
Extending MFC Applications with the .NET Framework It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson