//Status (bit 4 Status) – if bit 4 = 0 then ‘False’ else ‘True’ if ((Hexvalue2 & 0x0008) == 0) { MessageBox.Show("hello bit 4 not set"); //checkBox4.Checked = false; label10.Text = " Status-"; label9.Text += "False"; } else { MessageBox.Show("bit 4 set"); //checkBox4.Checked = true; label10.Text = "Status-"; label9.Text += "True"; }
Bit No Hex Decimal 0 01 1 1 02 2 2 04 4 3 08 8 4 10 16 5 20 32 6 40 64 7 80 128
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)