Beispiel #1
0
        public static void SetSystemColor(System.Drawing.Color color)
        {
            //array of elements to change
            int[] elements = { Win32.COLOR_SCROLLBAR };

            //array of corresponding colors
            int[] colors = { System.Drawing.ColorTranslator.ToWin32(color) };

            //set the desktop color using p/invoke
            Win32.SetSysColors(elements.Length, elements, colors);
        }