Пример #1
0
 /// <summary>
 /// Parameter-based constructor that allows specifying the
 /// numbering base.
 /// </summary>
 /// <param name="numBase">The numbering base.</param>
 public NumericTextBox(NumberingBase numBase) : base()
 {
     // Set the numbering base to the specified value.
     this.numBase = numBase;
     // Auto convert to uppercase.
     this.CharacterCasing = CharacterCasing.Upper;
     // Add event handler to filter the input.
     this.KeyDown += new KeyEventHandler(OnKeyDown);
 }
 /// <summary>
 /// Parameter-based constructor that allows specifying the
 /// numbering base.
 /// </summary>
 /// <param name="numBase">The numbering base.</param>
 public NumericTextBox(NumberingBase numBase) : base()
 {
     // Set the numbering base to the specified value.
     this.numBase = numBase;
     // Auto convert to uppercase.
     this.CharacterCasing = CharacterCasing.Upper;
     // Add event handler to filter the input.
     this.KeyDown += new KeyEventHandler(OnKeyDown);
 }