Search code examples
c#visual-studiocolorsitemsmenustrip

Change All ToolStripMenuItem ForeColor


I'm trying to change the color from every Item from the menu Strip, but the dropdown items I can't change.The dropdown menu items aren't white the way I want. My need is to change the ForeColor from every item with one code in the .cs file.


Solution

  • Pertinent to your rather broad question, the sort of generic answer is: ToolStripMenuItem controls (e.g. _mnuItem ) have ForeColor property, which can be set programmatically in C# code-behind, like: _mnuItem .ForeColor = Color.Black;

    Hope this may help.