ابتدا تو قسمت Using کد زیر رو بنویس
using System.Runtime.InteropServices;
بعد کد پایینی رو هم در اول کلاس فرمت بنویس
[DllImport("user32.dll")]
public static extern bool SetSysColors(int cElements, int[] lpaElements, uint[] lpaRgbValues);
const int COLOR_DESKTOP = 1;
uint RGB(byte byRed, byte byGreen, byte byBlue)
{
uint res = byBlue;
res = res << 8;
res += byGreen;
res = res << 8;
res += byRed;
return res;
}
int[] aiElements = { COLOR_DESKTOP };
uint[] aColors = { 0 };
بعد هم جایی که میخواهی رنگ رو تغییر بدی از دو دستور زیر استفاده کن البته من در اینجا از رنگ قرمز استفاده کردم ولی تو باید از رنگ
ColorDialog استفاده کنی
aColors[0] = RGB(Color.Red.R,Color.Red.G ,Color.Red.B );
SetSysColors(1, aiElements, aColors);
اگه با این کد مشکلی داشتی بگو