51 references to KeyPress
System.Windows.Forms (25)
System\Windows\Forms\Control.cs (1)
7601/// 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)
335/// 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)
530_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)
5700control.KeyPress += (sender, e) => 5747control.KeyPress += (sender, e) => 5804control.KeyPress += (sender, e) => 5849control.KeyPress += (sender, e) => 5908control.KeyPress += (sender, e) => 5991control.KeyPress += (sender, e) => 6038control.KeyPress += (sender, e) => 6095control.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)
1239add { base.KeyPress += value; } 1240remove { base.KeyPress -= value; }