3
Answers

How to set the background color change automatically.

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;

else

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.

 

Thanks.

Answers (3)