51 references to KeyPress
System.Windows.Forms (25)
System\Windows\Forms\Control.cs (1)
7642/// Raises the <see cref="KeyPress"/> event.
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
347add => base.KeyPress += value; 348remove => base.KeyPress -= value;
System\Windows\Forms\Controls\Labels\Label.cs (2)
624add => base.KeyPress += value; 625remove => base.KeyPress -= value;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
944add => base.KeyPress += value; 945remove => base.KeyPress -= value;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (2)
523add => base.KeyPress += value; 524remove => base.KeyPress -= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
287_editTextBox.KeyPress += OnEditKeyPress;
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
489add => base.KeyPress += value; 490remove => base.KeyPress -= value;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1954/// Raises the <see cref="Control.KeyPress"/> event.
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
727control.KeyPress += HandleKeyPress; 772control.KeyPress -= HandleKeyPress;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
497add => base.KeyPress += value; 498remove => base.KeyPress -= value;
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
331/// 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)
181add => base.KeyPress += value; 182remove => 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)
503nameof(ToolStripPanel.KeyPress),
System.Windows.Forms.Tests (22)
System\Windows\Forms\ControlTests.Handlers.cs (2)
3030control.KeyPress += handler; 3036control.KeyPress -= handler;
System\Windows\Forms\ControlTests.Methods.cs (8)
5709control.KeyPress += (sender, e) => 5756control.KeyPress += (sender, e) => 5813control.KeyPress += (sender, e) => 5858control.KeyPress += (sender, e) => 5917control.KeyPress += (sender, e) => 6000control.KeyPress += (sender, e) => 6047control.KeyPress += (sender, e) => 6104control.KeyPress += (sender, e) =>
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (8)
1546control.KeyPress += (sender, e) => 1593control.KeyPress += (sender, e) => 1650control.KeyPress += (sender, e) => 1695control.KeyPress += (sender, e) => 1754control.KeyPress += (sender, e) => 1837control.KeyPress += (sender, e) => 1884control.KeyPress += (sender, e) => 1941control.KeyPress += (sender, e) =>
System\Windows\Forms\TreeViewTests.cs (2)
5874control.KeyPress += handler; 5880control.KeyPress -= handler;
System\Windows\Forms\UpDownBaseTests.cs (2)
2448control.KeyPress += handler; 2454control.KeyPress -= handler;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
1236add { base.KeyPress += value; } 1237remove { base.KeyPress -= value; }