private void ValidatePadding(TextBox source) { try { var tmp = (Padding)paddConv.ConvertFromString(source.Text); source.BackColor = Color.White; } catch (Exception) { source.BackColor = Color.Red; } }