I tried your code and it changes bg-color just fine. I changed FlatStyle.Flat and bg-color still changes fine.
If you set FlatStyle.Flat, have you checked FlatAppearance properties (borders & colors)? It seems FlatAppearance properties are design time props and are ReadOnly in the run-time. Anyway, changing FlatAppearance may solve your problem.
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Offline 1,024 posts
since Aug 2008