Changing the color of the title bar in WinForm
问题 Is it possible to change the color of the title bar of a WinForm in C#? __________________________ [Form1_______________-|[]|X] <- I want to change the color of this | | | | | | |__________________________| 回答1: I solved this problem. This is the code: [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC); [DllImport("User32.dll")] private static extern IntPtr GetWindowDC(IntPtr hWnd); protected override void WndProc(ref Message m) {