private static void TestNumberBox(NumberBox ctrl) { ctrl.BackgroundColor = (int)Color.Blue; Debug.Print(ctrl.BackgroundColor.ToString()); ctrl.Refresh(); ctrl.ForegroundColor = (int)Color.Red; Debug.Print(ctrl.ForegroundColor.ToString()); ctrl.Refresh(); ctrl.FontId = (byte)DisplayConfiguration.Fonts.Sanserif_16_B; Debug.Print(ctrl.FontId.ToString()); ctrl.Refresh(); ctrl.NumberOfDigits = 2; Debug.Print(ctrl.NumberOfDigits.ToString()); ctrl.HorizontalAlignment = HorizontalAlignment.Center; ctrl.Refresh(); ctrl.VerticalAlignment = VerticalAlignment.Center; ctrl.Refresh(); for (int i = 0; i <= 10; i++) { ctrl.Value = i; Debug.Print(ctrl.Value.ToString()); Thread.Sleep(500); } }