Tag Archives: power status

Display a colored battery status in C#

This is a minor update to the example Display battery status in a friendly way in C#. That example periodically checks the battery’s charge. It then draws textual and graphical indicators of the charge and plugged/unplugged status. That example was … Continue reading

Posted in drawing, graphics, system | Tagged , , , , , , , , , , | Comments Off on Display a colored battery status in C#

Display battery status in a friendly way in C#

The example Display battery status in C# shows how you can get the computer’s battery status. This example shows a couple of different ways you can display the battery’s status in user-friendly ways. First the program uses the following code … Continue reading

Posted in drawing, graphics, system | Tagged , , , , , , , , , , | 2 Comments

Display battery status in C#

Often I’ll be working on my laptop when it isn’t plugged in and suddenly I get a panicked message from Windows telling me that the battery is almost exhausted and if I don’t shut down immediately the world will explode. … Continue reading

Posted in system | Tagged , , , , , , , , | Comments Off on Display battery status in C#