2 instantiations of KeyPressEventArgs
System.Windows.Forms (2)
System\Windows\Forms\Control.cs (2)
8937
kpe = new
KeyPressEventArgs
((char)(int)m.WParamInternal);
8949
kpe = new
KeyPressEventArgs
((char)(int)m.WParamInternal);
25 references to KeyPressEventArgs
System.Windows.Forms (23)
System\Windows\Forms\Control.cs (3)
7731
protected virtual void OnKeyPress(
KeyPressEventArgs
e)
8913
/// appropriate key events for the message by calling the <see cref="OnKeyPress(
KeyPressEventArgs
)"/>,
8922
KeyPressEventArgs
? kpe = null;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2456
protected override void OnKeyPress(
KeyPressEventArgs
e)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
15726
protected override void OnKeyPress(
KeyPressEventArgs
e)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (4)
2492
protected virtual bool KeyPressUnsharesRow(
KeyPressEventArgs
e, int rowIndex) => false;
2494
internal bool KeyPressUnsharesRowInternal(
KeyPressEventArgs
e, int rowIndex) =>
2870
internal void OnKeyPressInternal(
KeyPressEventArgs
e, int rowIndex) =>
2873
protected virtual void OnKeyPress(
KeyPressEventArgs
e, int rowIndex)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
777
protected override void OnKeyPress(
KeyPressEventArgs
e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2536
private void OnEditKeyPress(object? sender,
KeyPressEventArgs
e)
2971
protected override void OnKeyPress(
KeyPressEventArgs
e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
153
protected override void OnKeyPress(
KeyPressEventArgs
e)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1950
protected override void OnKeyPress(
KeyPressEventArgs
e)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
512
private void HandleKeyPress(object? sender,
KeyPressEventArgs
e) => OnKeyPress(e);
634
protected virtual void OnKeyPress(
KeyPressEventArgs
e) => RaiseKeyPressEvent(s_keyPressEvent, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3084
internal void RaiseKeyPressEvent(object key,
KeyPressEventArgs
e) => ((KeyPressEventHandler?)Events[key])?.Invoke(this, e);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2291
protected override void OnKeyPress(
KeyPressEventArgs
e)
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
331
protected override void OnTextBoxKeyPress(object? source,
KeyPressEventArgs
e)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
446
protected override void OnTextBoxKeyPress(object? source,
KeyPressEventArgs
e)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
620
protected virtual void OnTextBoxKeyPress(object? source,
KeyPressEventArgs
e)
System\Windows\Forms\Input\KeyPressEventArgs.cs (1)
12
/// Initializes a new instance of the <see cref="
KeyPressEventArgs
"/> class.
System\Windows\Forms\Input\KeyPressEventHandler.cs (1)
10
public delegate void KeyPressEventHandler(object? sender,
KeyPressEventArgs
e);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (1)
115
protected override void OnKeyPress(
KeyPressEventArgs
e)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1041
private void selectedColumns_KeyPress(object? sender,
KeyPressEventArgs
e)