arccuks arccuks - 1 year ago 76
C# Question

What component should I use to display enabled/disabled state?

I have been wondering what component I should use to display state of enabled/disabled behaviours in WinForms.

For example I have function that returns state of 2 different processes.
And I want to display like green and red color on GUI, so that user could easily know which process has wich state.

In Java I have used

, like setting it to 100 and 0, so it represents the state of that process. But as for now, I have moved to C#, so I would like to know what components you use for this purpose, maybe there is something better to use.

Answer Source

Any component with a background color property will do. I suggest you use Panel and switch the background color according to your state.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download