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)
5713e.KeyChar = newChar; 5760e.KeyChar = newChar; 5817e.KeyChar = newChar; 6004e.KeyChar = newChar; 6051e.KeyChar = newChar; 6108e.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)
8862newWParam = kpe.KeyChar; 8874char preEventCharacter = kpe.KeyChar; 8878newWParam = kpe.KeyChar == preEventCharacter ? m.WParamInternal : (WPARAM)kpe.KeyChar;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
2468if (!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)
2523e.Handled = FilterReadOnlyEditKeyPress(e.KeyChar); 2935if (WillFilterKeyPress(e.KeyChar)) 2938FilterKeyPress(e.KeyChar);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
155if (!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)
339char[] 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)
5712Assert.Equal(2, e.KeyChar); 5759Assert.Equal(2, e.KeyChar); 5816Assert.Equal(2, e.KeyChar); 5861Assert.Equal(0, e.KeyChar); 6003Assert.Equal(2, e.KeyChar); 6050Assert.Equal(2, e.KeyChar); 6107Assert.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);