75 instantiations of KeyEventArgs
System.Windows.Forms.Tests (73)
KeyboardTooltipStateMachineTests.cs (1)
112
public void SimulateKeyUp(Keys keys) => base.OnKeyUp(new
KeyEventArgs
(keys));
System\Windows\Forms\ButtonBaseTests.cs (26)
5483
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel), false, false };
5484
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter), false, false };
5485
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space), true, expectedIsHandleCreated };
5528
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel), false };
5529
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter), false };
5530
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space), true };
5574
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel), false, 0 };
5575
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter), false, 0 };
5576
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space), true, 1 };
5632
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel), false };
5633
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter), false };
5634
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space), true };
5705
control.OnKeyDown(new
KeyEventArgs
(key));
5730
control.OnKeyDown(new
KeyEventArgs
(key));
5747
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.None) };
5748
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel) };
5749
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter) };
5750
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space) };
5797
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel), 0, expectedIsHandleCreated };
5798
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter), 1, expectedIsHandleCreated };
5799
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space), 1, expectedIsHandleCreated };
5902
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel), 0, expectedCallCount };
5903
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter), 1, expectedCallCount };
5904
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space), 1, expectedCallCount };
5984
control.OnKeyUp(new
KeyEventArgs
(key));
6009
control.OnKeyUp(new
KeyEventArgs
(key));
System\Windows\Forms\ComboBoxTests.cs (1)
2774
public void OnKeyUp() => base.OnKeyUp(new
KeyEventArgs
(Keys.Left));
System\Windows\Forms\DataGridViewCellTests.cs (2)
6491
cell.OnKeyClick(new
KeyEventArgs
(Keys.Space), 0);
6499
cell.OnKeyClick(new
KeyEventArgs
(Keys.Space), 0);
System\Windows\Forms\KeyEventArgsTests.cs (3)
24
KeyEventArgs e =
new
(keyData);
49
KeyEventArgs e =
new
(Keys.A)
63
KeyEventArgs e =
new
(Keys.A)
System\Windows\Forms\LabelTests.cs (2)
749
KeyEventArgs keyEventArgs = new
KeyEventArgs
(Keys.A);
771
KeyEventArgs keyEventArgs = new
KeyEventArgs
(Keys.A);
System\Windows\Forms\SplitterTests.cs (3)
1820
yield return new object[] { new
KeyEventArgs
(Keys.None) };
1821
yield return new object[] { new
KeyEventArgs
(Keys.Cancel) };
1822
yield return new object[] { new
KeyEventArgs
(Keys.Escape) };
System\Windows\Forms\ToolStripControlHostTests.cs (2)
4065
c.OnKeyDown(new
KeyEventArgs
(Keys.A));
4071
c.OnKeyUp(new
KeyEventArgs
(Keys.A));
System\Windows\Forms\TreeViewTests.cs (21)
5730
yield return new object[] { new
KeyEventArgs
(Keys.None) };
5731
yield return new object[] { new
KeyEventArgs
(Keys.A) };
5732
yield return new object[] { new
KeyEventArgs
(Keys.Space) };
5733
yield return new object[] { new
KeyEventArgs
(Keys.Control | Keys.Space) };
5762
yield return new object[] { false, true, false, new
KeyEventArgs
(Keys.None), 0, 0, false };
5763
yield return new object[] { false, true, false, new
KeyEventArgs
(Keys.A), 0, 0, false };
5764
yield return new object[] { false, true, false, new
KeyEventArgs
(Keys.Space), 1, 1, true };
5765
yield return new object[] { false, true, true, new
KeyEventArgs
(Keys.Space), 1, 0, true };
5766
yield return new object[] { false, true, false, new
KeyEventArgs
(Keys.Control | Keys.Space), 1, 1, true };
5767
yield return new object[] { false, true, true, new
KeyEventArgs
(Keys.Control | Keys.Space), 1, 0, true };
5769
yield return new object[] { true, true, false, new
KeyEventArgs
(Keys.Space), 0, 0, true };
5770
yield return new object[] { true, false, false, new
KeyEventArgs
(Keys.Space), 0, 0, true };
5771
yield return new object[] { false, false, false, new
KeyEventArgs
(Keys.Space), 0, 0, false };
5895
yield return new object[] { true, new
KeyEventArgs
(Keys.None), true };
5896
yield return new object[] { true, new
KeyEventArgs
(Keys.A), true };
5897
yield return new object[] { true, new
KeyEventArgs
(Keys.Space), true };
5898
yield return new object[] { true, new
KeyEventArgs
(Keys.Control | Keys.Space), true };
5900
yield return new object[] { false, new
KeyEventArgs
(Keys.None), false };
5901
yield return new object[] { false, new
KeyEventArgs
(Keys.A), false };
5902
yield return new object[] { false, new
KeyEventArgs
(Keys.Space), true };
5903
yield return new object[] { false, new
KeyEventArgs
(Keys.Control | Keys.Space), true };
System\Windows\Forms\UpDownBaseTests.cs (12)
2357
yield return new object[] { true, userEdit, source, new
KeyEventArgs
(Keys.A), 0, 0, 0, false };
2358
yield return new object[] { false, userEdit, source, new
KeyEventArgs
(Keys.A), 0, 0, 0, false };
2359
yield return new object[] { true, userEdit, source, new
KeyEventArgs
(Keys.Up), 1, 0, 0, true };
2360
yield return new object[] { false, userEdit, source, new
KeyEventArgs
(Keys.Up), 0, 0, 0, false };
2361
yield return new object[] { true, userEdit, source, new
KeyEventArgs
(Keys.Down), 0, 1, 0, true };
2362
yield return new object[] { false, userEdit, source, new
KeyEventArgs
(Keys.Down), 0, 0, 0, false };
2363
yield return new object[] { true, userEdit, source, new
KeyEventArgs
(Keys.Left), 0, 0, 0, false };
2364
yield return new object[] { false, userEdit, source, new
KeyEventArgs
(Keys.Left), 0, 0, 0, false };
2365
yield return new object[] { true, userEdit, source, new
KeyEventArgs
(Keys.Right), 0, 0, 0, false };
2366
yield return new object[] { false, userEdit, source, new
KeyEventArgs
(Keys.Right), 0, 0, 0, false };
2371
yield return new object[] { interceptArrowKeys, true, source, new
KeyEventArgs
(Keys.Return), 0, 0, 1, false };
2372
yield return new object[] { interceptArrowKeys, false, source, new
KeyEventArgs
(Keys.Return), 0, 0, 0, false };
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
124
new
(Keys.None),
125
new
(Keys.Cancel)
170 references to KeyEventArgs
System.Windows.Forms (65)
System\Windows\Forms\Control.cs (6)
5071
protected void RaiseKeyEvent(object key,
KeyEventArgs
e)
7636
protected virtual void OnKeyDown(
KeyEventArgs
e)
7654
protected virtual void OnKeyUp(
KeyEventArgs
e)
8837
/// <see cref="OnKeyDown(
KeyEventArgs
)"/>, or <see cref="OnKeyUp(
KeyEventArgs
)"/>. The <paramref name="m"/>
8844
KeyEventArgs
? ke = null;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1118
protected override void OnKeyDown(
KeyEventArgs
kevent)
1146
protected override void OnKeyUp(
KeyEventArgs
kevent)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
2436
protected override void OnKeyDown(
KeyEventArgs
e)
2487
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
15673
protected override void OnKeyDown(
KeyEventArgs
e)
15759
protected override void OnKeyUp(
KeyEventArgs
e)
21897
KeyEventArgs
ke = new((Keys)(nint)m.WParamInternal | ModifierKeys);
21945
KeyEventArgs
ke = new((Keys)(nint)m.WParamInternal | ModifierKeys);
24430
protected virtual bool ProcessDataGridViewKey(
KeyEventArgs
e)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (4)
439
protected override bool KeyDownUnsharesRow(
KeyEventArgs
e, int rowIndex) =>
442
protected override bool KeyUpUnsharesRow(
KeyEventArgs
e, int rowIndex) =>
457
protected override void OnKeyDown(
KeyEventArgs
e, int rowIndex)
471
protected override void OnKeyUp(
KeyEventArgs
e, int rowIndex)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (9)
2496
protected virtual bool KeyDownUnsharesRow(
KeyEventArgs
e, int rowIndex) => false;
2498
internal bool KeyDownUnsharesRowInternal(
KeyEventArgs
e, int rowIndex) =>
2501
public virtual bool KeyEntersEditMode(
KeyEventArgs
e) => false;
2508
protected virtual bool KeyUpUnsharesRow(
KeyEventArgs
e, int rowIndex) => false;
2510
internal bool KeyUpUnsharesRowInternal(
KeyEventArgs
e, int rowIndex) =>
2874
internal void OnKeyDownInternal(
KeyEventArgs
e, int rowIndex) =>
2877
protected virtual void OnKeyDown(
KeyEventArgs
e, int rowIndex)
2888
protected virtual void OnKeyUp(
KeyEventArgs
e, int rowIndex)
2892
internal void OnKeyUpInternal(
KeyEventArgs
e, int rowIndex) =>
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
757
protected override bool KeyDownUnsharesRow(
KeyEventArgs
e, int rowIndex) =>
760
protected override bool KeyUpUnsharesRow(
KeyEventArgs
e, int rowIndex) => e.KeyCode == Keys.Space;
805
protected override void OnKeyDown(
KeyEventArgs
e, int rowIndex)
819
protected override void OnKeyUp(
KeyEventArgs
e, int rowIndex)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1510
public override bool KeyEntersEditMode(
KeyEventArgs
e)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (2)
683
protected override bool KeyUpUnsharesRow(
KeyEventArgs
e, int rowIndex)
724
protected override void OnKeyUp(
KeyEventArgs
e, int rowIndex)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
532
public override bool KeyEntersEditMode(
KeyEventArgs
e)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
793
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
2162
private void OnButtonKeyDown(object? sender,
KeyEventArgs
ke) => OnKeyDown(sender, ke);
2320
private void OnListKeyDown(object? sender,
KeyEventArgs
e)
2486
private void OnEditKeyDown(object? sender,
KeyEventArgs
e)
2679
protected override void OnKeyDown(
KeyEventArgs
e) => OnKeyDown(this, e);
2681
private void OnKeyDown(object? sender,
KeyEventArgs
e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
141
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
801
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1374
protected override void OnKeyDown(
KeyEventArgs
ke)
1698
private void SelectNextTab(
KeyEventArgs
ke, bool forward)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
1844
protected override void OnKeyDown(
KeyEventArgs
e)
2025
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
650
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (4)
510
private void HandleKeyDown(object? sender,
KeyEventArgs
e) => OnKeyDown(e);
514
private void HandleKeyUp(object? sender,
KeyEventArgs
e) => OnKeyUp(e);
632
protected virtual void OnKeyDown(
KeyEventArgs
e) => RaiseKeyEvent(s_keyDownEvent, e);
636
protected virtual void OnKeyUp(
KeyEventArgs
e) => RaiseKeyEvent(s_keyUpEvent, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3073
internal void RaiseKeyEvent(object key,
KeyEventArgs
e) => ((KeyEventHandler?)Events[key])?.Invoke(this, e);
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2247
protected override void OnKeyDown(
KeyEventArgs
e)
2278
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (2)
423
protected override void OnKeyDown(
KeyEventArgs
e)
436
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
592
protected virtual void OnTextBoxKeyDown(object? source,
KeyEventArgs
e)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
103
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
743
private void OnPositionKey(object? sender,
KeyEventArgs
e)
System\Windows\Forms\Input\KeyEventArgs.cs (1)
15
/// Initializes a new instance of the <see cref="
KeyEventArgs
"/> class.
System\Windows\Forms\Input\KeyEventHandler.cs (1)
11
public delegate void KeyEventHandler(object? sender,
KeyEventArgs
e);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
928
protected override void OnKeyDown(
KeyEventArgs
e)
1005
protected override void OnKeyUp(
KeyEventArgs
e)
System.Windows.Forms.Design (20)
System\ComponentModel\Design\ByteViewer.cs (1)
507
protected override void OnKeyDown(
KeyEventArgs
e)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
632
private void ListBox_keyDown(object? sender,
KeyEventArgs
e)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
94
protected override void OnKeyDown(
KeyEventArgs
kevent)
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (1)
44
private void MonthCalKeyDown(object? sender,
KeyEventArgs
e)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
197
private void OnListBoxKeyDown(object? sender,
KeyEventArgs
e)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (3)
187
private void OnEditControlKeyDown(
KeyEventArgs
e)
250
private void OnReadOnlyTextBoxLabelKeyDown(object? sender,
KeyEventArgs
e)
256
private void OnTextBoxKeyDown(object? sender,
KeyEventArgs
e)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
94
protected override void OnKeyDown(
KeyEventArgs
e)
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (1)
92
protected override void OnKeyDown(
KeyEventArgs
e)
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
270
protected override void OnKeyDown(
KeyEventArgs
e)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
282
private void OnListKeyDown(object? sender,
KeyEventArgs
ke)
System\Drawing\Design\SelectionPanelBase.cs (1)
61
private void OnKeyDown(object? sender,
KeyEventArgs
e)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1035
private void selectedColumns_KeyUp(object? sender,
KeyEventArgs
e)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
2088
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
679
private void maskedTextBox_KeyDown(object? sender,
KeyEventArgs
e)
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
90
private void maskedTextBox_KeyDown(object sender,
KeyEventArgs
e)
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
36
private void Edit1_keyDown(object? sender,
KeyEventArgs
e)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1067
private void OnKeyUp(object sender,
KeyEventArgs
e)
1102
private void OnKeyDown(object sender,
KeyEventArgs
e)
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ByteViewerTests.cs (2)
400
public void ByteViewer_OnKeyDown_Invoke_CallsKeyDown(
KeyEventArgs
eventArgs)
1088
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
System.Windows.Forms.Tests (80)
System\Windows\Forms\AxHostTests.cs (1)
2280
public void AxHost_OnLeave_Invoke_CallsLeave(
KeyEventArgs
eventArgs)
System\Windows\Forms\ButtonBaseTests.cs (10)
5492
public void ButtonBase_OnKeyDown_Invoke_CallsKeyDown(FlatStyle flatStyle, bool enabled,
KeyEventArgs
eventArgs, bool expectedHandled, bool expectedIsHandleCreated)
5537
public void ButtonBase_OnKeyDown_InvokeMouseDown_CallsKeyDown(FlatStyle flatStyle, bool enabled,
KeyEventArgs
eventArgs, bool expectedHandled)
5583
public void ButtonBase_OnKeyDown_InvokeWithHandle_CallsKeyDown(FlatStyle flatStyle, bool enabled,
KeyEventArgs
eventArgs, bool expectedHandled, int expectedInvalidatedCallCount)
5641
public void ButtonBase_OnKeyDown_InvokeMouseDownWithHandle_CallsKeyDown(FlatStyle flatStyle, bool enabled,
KeyEventArgs
eventArgs, bool expectedHandled)
5757
public void ButtonBase_OnKeyUp_Invoke_CallsKeyUp(FlatStyle flatStyle, bool enabled,
KeyEventArgs
eventArgs)
5806
public void ButtonBase_OnKeyUp_InvokeMouseDown_CallsKeyUp(FlatStyle flatStyle, bool enabled,
KeyEventArgs
eventArgs, int expectedClickCallCount, bool expectedIsHandleCreated)
5848
public void ButtonBase_OnKeyUp_InvokeWithHandle_CallsKeyUp(FlatStyle flatStyle, bool enabled,
KeyEventArgs
eventArgs)
5911
public void ButtonBase_OnKeyUp_InvokeMouseDownWithHandle_CallsKeyUp(FlatStyle flatStyle, bool enabled,
KeyEventArgs
eventArgs, int expectedClickCallCount, int expectedInvalidatedCallCount)
9349
public new void OnKeyDown(
KeyEventArgs
kevent) => base.OnKeyDown(kevent);
9351
public new void OnKeyUp(
KeyEventArgs
kevent) => base.OnKeyUp(kevent);
System\Windows\Forms\ComboBoxTests.cs (1)
2912
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
System\Windows\Forms\ControlTests.cs (2)
1302
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
1306
public new void OnKeyUp(
KeyEventArgs
e) => base.OnKeyUp(e);
System\Windows\Forms\ControlTests.Handlers.cs (3)
2992
public void Control_OnKeyDown_Invoke_CallsKeyDown(
KeyEventArgs
eventArgs)
3044
public void Control_OnKeyUp_Invoke_CallsKeyUp(
KeyEventArgs
eventArgs)
3161
public void Control_OnLeave_Invoke_CallsLeave(
KeyEventArgs
eventArgs)
System\Windows\Forms\DataGridViewCellTests.cs (8)
5769
public void DataGridViewCell_OnKeyDown_Invoke_Nop(
KeyEventArgs
e)
5785
public void DataGridViewCell_OnKeyUp_Invoke_Nop(
KeyEventArgs
e)
6518
public void OnKeyClick(
KeyEventArgs
e, int rowIndex) => OnKeyUp(e, rowIndex);
6591
public new bool KeyDownUnsharesRow(
KeyEventArgs
e, int rowIndex) => base.KeyDownUnsharesRow(e, rowIndex);
6593
public new bool KeyEntersEditMode(
KeyEventArgs
e) => base.KeyEntersEditMode(e);
6597
public new bool KeyUpUnsharesRow(
KeyEventArgs
e, int rowIndex) => base.KeyUpUnsharesRow(e, rowIndex);
6627
public new void OnKeyDown(
KeyEventArgs
e, int rowIndex) => base.OnKeyDown(e, rowIndex);
6631
public new void OnKeyUp(
KeyEventArgs
e, int rowIndex) => base.OnKeyUp(e, rowIndex);
System\Windows\Forms\GroupBoxTests.cs (4)
1583
public void GroupBox_OnKeyDown_Invoke_CallsKeyDown(
KeyEventArgs
eventArgs)
1631
public void GroupBox_OnKeyUp_Invoke_CallsKeyUp(
KeyEventArgs
eventArgs)
2363
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
2367
public new void OnKeyUp(
KeyEventArgs
e) => base.OnKeyUp(e);
System\Windows\Forms\KeyEventArgsTests.cs (3)
24
KeyEventArgs
e = new(keyData);
49
KeyEventArgs
e = new(Keys.A)
63
KeyEventArgs
e = new(Keys.A)
System\Windows\Forms\LabelTests.cs (4)
749
KeyEventArgs
keyEventArgs = new KeyEventArgs(Keys.A);
771
KeyEventArgs
keyEventArgs = new KeyEventArgs(Keys.A);
949
public new void OnKeyUp(
KeyEventArgs
e) => base.OnKeyUp(e);
951
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
System\Windows\Forms\PanelTests.cs (4)
890
public void Panel_OnKeyDown_Invoke_CallsKeyDown(
KeyEventArgs
eventArgs)
938
public void Panel_OnKeyUp_Invoke_CallsKeyUp(
KeyEventArgs
eventArgs)
1226
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
1230
public new void OnKeyUp(
KeyEventArgs
e) => base.OnKeyUp(e);
System\Windows\Forms\PictureBoxTests.cs (4)
2303
public void PictureBox_OnKeyDown_Invoke_CallsKeyDown(
KeyEventArgs
eventArgs)
2351
public void PictureBox_OnKeyUp_Invoke_CallsKeyUp(
KeyEventArgs
eventArgs)
2906
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
2910
public new void OnKeyUp(
KeyEventArgs
e) => base.OnKeyUp(e);
System\Windows\Forms\ProgressBarTests.cs (4)
2226
public void ProgressBar_OnKeyDown_Invoke_CallsKeyDown(
KeyEventArgs
eventArgs)
2274
public void ProgressBar_OnKeyUp_Invoke_CallsKeyUp(
KeyEventArgs
eventArgs)
2660
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
2664
public new void OnKeyUp(
KeyEventArgs
e) => base.OnKeyUp(e);
System\Windows\Forms\PropertyGridTests.cs (6)
3620
public void PropertyGrid_OnKeyDown_Invoke_CallsKeyDown(
KeyEventArgs
eventArgs)
3625
void handler(object sender,
KeyEventArgs
e)
3674
public void PropertyGrid_OnKeyUp_Invoke_CallsKeyUp(
KeyEventArgs
eventArgs)
3679
void handler(object sender,
KeyEventArgs
e)
4233
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
4237
public new void OnKeyUp(
KeyEventArgs
e) => base.OnKeyUp(e);
System\Windows\Forms\SendKeysTests.cs (2)
29
public List<
KeyEventArgs
> KeyEvents { get; } = [];
31
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Forms\SplitterTests.cs (4)
1827
public void Splitter_OnKeyDown_Invoke_CallsKeyDown(
KeyEventArgs
eventArgs)
1891
public void Splitter_OnKeyUp_Invoke_CallsKeyUp(
KeyEventArgs
eventArgs)
2369
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
2373
public new void OnKeyUp(
KeyEventArgs
e) => base.OnKeyUp(e);
System\Windows\Forms\ToolStripControlHostTests.cs (8)
2872
public void ToolStripControlHost_OnKeyDown_Invoke_CallsKeyDown(
KeyEventArgs
eventArgs)
2922
public void ToolStripControlHost_OnKeyUp_Invoke_CallsKeyUp(
KeyEventArgs
eventArgs)
3536
public void ToolStripControlHost_OnSubscribeControlEvents_InvokeKeyDown_Success(
KeyEventArgs
eventArgs)
3576
public void ToolStripControlHost_OnSubscribeControlEvents_InvokeKeyUp_Success(
KeyEventArgs
eventArgs)
4588
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
4592
public new void OnKeyUp(
KeyEventArgs
e) => base.OnKeyUp(e);
4677
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
4681
public new void OnKeyUp(
KeyEventArgs
e) => base.OnKeyUp(e);
System\Windows\Forms\ToolStripDropDownTests.cs (4)
4062
public void ToolStripDropDown_OnKeyDown_Invoke_CallsKeyDown(
KeyEventArgs
eventArgs)
4110
public void ToolStripDropDown_OnKeyUp_Invoke_CallsKeyUp(
KeyEventArgs
eventArgs)
5204
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
5208
public new void OnKeyUp(
KeyEventArgs
e) => base.OnKeyUp(e);
System\Windows\Forms\TreeViewTests.cs (5)
5738
public void TreeView_OnKeyDown_Invoke_CallsKeyDown(
KeyEventArgs
eventArgs)
5776
public void TreeView_OnKeyDown_InvokeWithSelectedNode_CallsKeyDown(bool handled, bool checkBoxes, bool cancel,
KeyEventArgs
eventArgs, int expectedBeforeCheckCallCount, int expectedAfterCheckCallCount, bool expectedHandled)
5908
public void TreeView_OnKeyUp_Invoke_CallsKeyUp(bool handled,
KeyEventArgs
eventArgs, bool expectedHandled)
7654
public new void OnKeyDown(
KeyEventArgs
e) => base.OnKeyDown(e);
7658
public new void OnKeyUp(
KeyEventArgs
e) => base.OnKeyUp(e);
System\Windows\Forms\UpDownBaseTests.cs (3)
2379
public void UpDownBase_OnTextBoxKeyDown_Invoke_CallsKeyDown(bool interceptArrowKeys, bool userEdit, object source,
KeyEventArgs
eventArgs, int expectedUpButtonCallCount, int expectedDownButtonCallCount, int expectedValidateEditTextCallCount, bool expectedHandled)
3060
public new void OnTextBoxKeyDown(object source,
KeyEventArgs
e) => base.OnTextBoxKeyDown(source, e);
3214
public new void OnTextBoxKeyDown(object source,
KeyEventArgs
e) => base.OnTextBoxKeyDown(source, e);
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
120
public static TheoryData<
KeyEventArgs
> GetKeyEventArgsTheoryData()
122
return new TheoryData<
KeyEventArgs
>
WinFormsControlsTest (1)
RichTextBoxes.cs (1)
90
private void RichTextKeyDown(object sender,
KeyEventArgs
e)