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