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)
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)
943add => base.KeyPress += value; 944remove => 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)
1948/// 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)
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)
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)
497nameof(ToolStripPanel.KeyPress),
System.Windows.Forms.Tests (22)
System\Windows\Forms\ControlTests.Handlers.cs (2)
3032control.KeyPress += handler; 3038control.KeyPress -= handler;
System\Windows\Forms\ControlTests.Methods.cs (8)
5669control.KeyPress += (sender, e) => 5716control.KeyPress += (sender, e) => 5773control.KeyPress += (sender, e) => 5818control.KeyPress += (sender, e) => 5877control.KeyPress += (sender, e) => 5960control.KeyPress += (sender, e) => 6007control.KeyPress += (sender, e) => 6064control.KeyPress += (sender, e) =>
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (8)
1548control.KeyPress += (sender, e) => 1595control.KeyPress += (sender, e) => 1652control.KeyPress += (sender, e) => 1697control.KeyPress += (sender, e) => 1756control.KeyPress += (sender, e) => 1839control.KeyPress += (sender, e) => 1886control.KeyPress += (sender, e) => 1943control.KeyPress += (sender, e) =>
System\Windows\Forms\TreeViewTests.cs (2)
5876control.KeyPress += handler; 5882control.KeyPress -= handler;
System\Windows\Forms\UpDownBaseTests.cs (2)
2450control.KeyPress += handler; 2456control.KeyPress -= handler;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
1227add { base.KeyPress += value; } 1228remove { base.KeyPress -= value; }