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