Reputation: 15
I changed the BackColor property of my ContextMenuStrip to something other than white, but the area on the left where the icons go is still white. Is there a way to change the white color?
My icons are PNGs with transparency. The background color where the text is did get replaced, but the one where the icons are did not. Here is how it looks like:
Upvotes: 1
Views: 439
Reputation: 59208
The color is not white. It starts at #FCFCFC on the left and goes to #F1F1F1 on the right. This is the "Professional" render mode.
If you change the render mode to "System" instead, it will be black as well:
contextMenuStrip1.RenderMode = ToolStripRenderMode.System;
As long as the icon is transparent, the background will be black:
Upvotes: 1