2 overrides of MaxLength
System.Windows.Forms (2)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
487public override int MaxLength
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
792public override int MaxLength
17 writes to MaxLength
PresentationUI (3)
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (2)
135_requestedLocationTextBox.MaxLength = _maxLocationLength; 171_requestedSignerNameTextBox.MaxLength = _maxNameLength;
MS\Internal\Documents\SigningDialog.Designer.cs (1)
166_locationTextBox.MaxLength = _maxLocationLength;
System.Windows.Forms (4)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (2)
75EditingTextBox.MaxLength = value; 518textBox.MaxLength = MaxInputLength;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
490set => base.MaxLength = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
269set { TextBox.MaxLength = value; }
System.Windows.Forms.Tests (9)
TextBoxBaseTests.cs (9)
1690MaxLength = value 1696control.MaxLength = value; 1707MaxLength = 2 1731control.MaxLength = value; 1739control.MaxLength = value; 1760control.MaxLength = 2; 1780control.MaxLength = value; 1788Assert.Throws<ArgumentOutOfRangeException>("value", () => control.MaxLength = -1); 2688MaxLength = 1
WinFormsControlsTest (1)
PictureBoxes.Designer.cs (1)
72this.imageUri.MaxLength = 500;
18 references to MaxLength
System.Windows.Forms (3)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
489get => base.MaxLength;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
794get => base.MaxLength;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
268get { return TextBox.MaxLength; }
System.Windows.Forms.Tests (15)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
91Assert.Equal(32767, control.MaxLength);
TextBoxBaseTests.cs (13)
1665Assert.Equal(0x7FFF, control.MaxLength); 1673Assert.Equal(0x7FFF, control.MaxLength); 1692Assert.Equal(value, control.MaxLength); 1697Assert.Equal(value, control.MaxLength); 1709Assert.Equal(2, control.MaxLength); 1732Assert.Equal(value, control.MaxLength); 1740Assert.Equal(value, control.MaxLength); 1761Assert.Equal(2, control.MaxLength); 2597Assert.Equal(0x7FFF, control.MaxLength); 2651Assert.Equal(0x7FFF, control.MaxLength); 2673Assert.Equal(0x7FFF, control.MaxLength); 2695Assert.Equal(1, control.MaxLength); 2724Assert.Equal(0x7FFF, control.MaxLength);
TextBoxTests.cs (1)
85Assert.Equal(32767, control.MaxLength);