1

I set the background and foreground colors like this:

    this.loadToolStripMenuItem.BackColor = System.Drawing.Color.DarkBlue;
    this.loadToolStripMenuItem.ForeColor = System.Drawing.Color.Yellow;
    this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
    this.loadToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
    this.loadToolStripMenuItem.Text = "Load";
    this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadDatabase_Click);

However, at run time when the ToolStripMenuItem is selected the color scheme changes such that the background is a white/grey color. Mixed with yellow this is a bad appearance.

How does one control the background and foreground color while the item is being selected with the mouse? Ideally, I would like to keep DarkBlue and Yellow and have no change in appearance when the mouse is selecting the item.

sapbucket
  • 6,795
  • 15
  • 57
  • 94

0 Answers0