int a = 128; a = a & 0xff; MessageBox.Show(a.ToString());