>>> hi, im getting the powerstate of the battery
>>> usingSystemInformation.PowerState like so:
[quoted text clipped - 21 lines]
> if ((power.BatteryChargeStatus & BatteryChargeStatus.Charging) ==
> BatteryChargeStatus.Charging)
Yes, that's useful if you want to match a composite enum value exactly.
For example:
[Flags]
enum Value { Some = 1, Other = 2, Any = 3}
if ((x & Value.Any) != ) {
MessageBox.Show("some, other or both");
}
if ((x & Value.Any) == Value.Any) {
MesssageBox.Show("both some and other");
}
:)

Signature
Göran Andersson
_____
http://www.guffa.com