51 references to KeyPress
System.Windows.Forms (25)
System\Windows\Forms\Control.cs (1)
7634
/// Raises the <see cref="
KeyPress
"/> event.
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
347
add => base.
KeyPress
+= value;
348
remove => base.
KeyPress
-= value;
System\Windows\Forms\Controls\Labels\Label.cs (2)
624
add => base.
KeyPress
+= value;
625
remove => base.
KeyPress
-= value;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
943
add => base.
KeyPress
+= value;
944
remove => base.
KeyPress
-= value;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (2)
523
add => base.
KeyPress
+= value;
524
remove => base.
KeyPress
-= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
287
_editTextBox.
KeyPress
+= OnEditKeyPress;
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
489
add => base.
KeyPress
+= value;
490
remove => base.
KeyPress
-= value;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1948
/// Raises the <see cref="Control.
KeyPress
"/> event.
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
727
control.
KeyPress
+= HandleKeyPress;
772
control.
KeyPress
-= HandleKeyPress;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
497
add => base.
KeyPress
+= value;
498
remove => base.
KeyPress
-= value;
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
327
/// Handles the <see cref="Control.
KeyPress
"/>
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
57
_upDownEdit.
KeyPress
+= OnTextBoxKeyPress;
620
/// Raises the <see cref="Control.
KeyPress
"/> event.
System\Windows\Forms\Input\KeyPressEventArgs.cs (2)
7
/// Provides data for the <see cref="Control.
KeyPress
"/> event.
25
/// Gets or sets a value indicating whether the <see cref="Control.
KeyPress
"/> event was handled.
System\Windows\Forms\Input\KeyPressEventHandler.cs (1)
7
/// Represents a method that will handle the <see cref="Control.
KeyPress
"/>
System\Windows\Forms\Panels\Panel.cs (2)
181
add => base.
KeyPress
+= value;
182
remove => base.
KeyPress
-= value;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
528
_selectedColumns.
KeyPress
+= selectedColumns_KeyPress;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
497
nameof(ToolStripPanel.
KeyPress
),
System.Windows.Forms.Tests (22)
System\Windows\Forms\ControlTests.Handlers.cs (2)
3032
control.
KeyPress
+= handler;
3038
control.
KeyPress
-= handler;
System\Windows\Forms\ControlTests.Methods.cs (8)
5669
control.
KeyPress
+= (sender, e) =>
5716
control.
KeyPress
+= (sender, e) =>
5773
control.
KeyPress
+= (sender, e) =>
5818
control.
KeyPress
+= (sender, e) =>
5877
control.
KeyPress
+= (sender, e) =>
5960
control.
KeyPress
+= (sender, e) =>
6007
control.
KeyPress
+= (sender, e) =>
6064
control.
KeyPress
+= (sender, e) =>
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (8)
1548
control.
KeyPress
+= (sender, e) =>
1595
control.
KeyPress
+= (sender, e) =>
1652
control.
KeyPress
+= (sender, e) =>
1697
control.
KeyPress
+= (sender, e) =>
1756
control.
KeyPress
+= (sender, e) =>
1839
control.
KeyPress
+= (sender, e) =>
1886
control.
KeyPress
+= (sender, e) =>
1943
control.
KeyPress
+= (sender, e) =>
System\Windows\Forms\TreeViewTests.cs (2)
5876
control.
KeyPress
+= handler;
5882
control.
KeyPress
-= handler;
System\Windows\Forms\UpDownBaseTests.cs (2)
2450
control.
KeyPress
+= handler;
2456
control.
KeyPress
-= handler;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
1227
add { base.
KeyPress
+= value; }
1228
remove { base.
KeyPress
-= value; }