How to set the background color change automatically.

Jul 19 2021 5:36 PM

Hi all,

I have created the ToolStripMenuItem in the windows form and set the background color in the background process.

I checked the condition like this in the thread, it automatically runs in the background.

if(Condition == true)

ToolStripMenuItem.BackColor = Color.Green;


ToolStripMenuItem.BackColor = Color.Red;


It change the color when I hover the mouse on it. But, I want to automatically change the Bg color. 

If anybody have idea, please share it.



Answers (3)