14 writes to KeyChar
System.Windows.Forms (1)
System\Windows\Forms\Input\KeyPressEventArgs.cs (1)
16KeyChar = keyChar;
System.Windows.Forms.Tests (13)
System\Windows\Forms\ControlTests.Methods.cs (6)
5704e.KeyChar = newChar; 5751e.KeyChar = newChar; 5808e.KeyChar = newChar; 5995e.KeyChar = newChar; 6042e.KeyChar = newChar; 6099e.KeyChar = newChar;
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (6)
1550e.KeyChar = newChar; 1597e.KeyChar = newChar; 1654e.KeyChar = newChar; 1841e.KeyChar = newChar; 1888e.KeyChar = newChar; 1945e.KeyChar = newChar;
System\Windows\Forms\KeyPressEventArgsTests.cs (1)
26KeyChar = value
39 references to KeyChar
System.Windows.Forms (22)
System\Windows\Forms\Control.cs (4)
8821newWParam = kpe.KeyChar; 8833char preEventCharacter = kpe.KeyChar; 8837newWParam = kpe.KeyChar == preEventCharacter ? m.WParamInternal : (WPARAM)kpe.KeyChar;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
2467if (!e.Handled && (e.KeyChar == (char)(int)Keys.Return || e.KeyChar == (char)(int)Keys.Escape)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
777if (e.KeyChar == ' ' && SelectionMode != SelectionMode.None)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
2522e.Handled = FilterReadOnlyEditKeyPress(e.KeyChar); 2934if (WillFilterKeyPress(e.KeyChar)) 2937FilterKeyPress(e.KeyChar);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
152if (!IsInputChar(e.KeyChar))
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
1974if (!char.IsLetter(e.KeyChar)) 1987if (PlaceChar(e.KeyChar, selectionStart, selectionLen, IsOverwriteMode, out MaskedTextResultHint hint))
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2306if (e.KeyChar == ' ')
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
343char[] character = [e.KeyChar];
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (7)
459string keyInput = e.KeyChar.ToString(); 461if (char.IsDigit(e.KeyChar)) 469else if (e.KeyChar == '\b') 473else if (Hexadecimal && ((e.KeyChar >= 'a' && e.KeyChar <= 'f') || (e.KeyChar >= 'A' && e.KeyChar <= 'F')))
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (1)
117switch (e.KeyChar)
System.Windows.Forms.Tests (16)
System\Windows\Forms\ControlTests.Methods.cs (7)
5703Assert.Equal(2, e.KeyChar); 5750Assert.Equal(2, e.KeyChar); 5807Assert.Equal(2, e.KeyChar); 5852Assert.Equal(0, e.KeyChar); 5994Assert.Equal(2, e.KeyChar); 6041Assert.Equal(2, e.KeyChar); 6098Assert.Equal(2, e.KeyChar);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (7)
1549Assert.Equal((char)wParam, e.KeyChar); 1596Assert.Equal((char)wParam, e.KeyChar); 1653Assert.Equal((char)wParam, e.KeyChar); 1698Assert.Equal(0, e.KeyChar); 1840Assert.Equal((char)wParam, e.KeyChar); 1887Assert.Equal((char)wParam, e.KeyChar); 1944Assert.Equal((char)wParam, e.KeyChar);
System\Windows\Forms\KeyPressEventArgsTests.cs (2)
15Assert.Equal(keyChar, e.KeyChar); 28Assert.Equal(value, e.KeyChar);