50 references to Return
System.Windows.Forms (28)
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (1)
41
if (IsInputKey(Keys.
Return
))
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
1444
else if (keyChar == (char)(int)Keys.
Return
&& DroppedDown)
2066
if (keyChar != (char)Keys.Escape && keyChar != (char)Keys.
Return
&& !DroppedDown
2135
if (keyCode is Keys.
Return
or Keys.Escape)
2439
if (e.KeyCode == Keys.
Return
)
2466
if (!e.Handled && (e.KeyChar == (char)(int)Keys.
Return
|| e.KeyChar == (char)(int)Keys.Escape)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1382
sb.Append((char)Keys.
Return
);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
193
stringBuilder.Append((char)Keys.
Return
);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
165
stringBuilder.Append((char)Keys.
Return
);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
4277
case Keys.
Return
:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
2031
case Keys.
Return
:
2322
if (e.KeyCode == Keys.
Return
)
2780
case Keys.
Return
:
3903
case Keys.
Return
:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
535
case Keys.
Return
:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (3)
109
case Keys.
Return
:
124
Keys.Tab or Keys.
Return
=> false,
248
case Keys.
Return
:
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
538
if ((keyData & Keys.KeyCode) == Keys.
Return
)
1857
if (keyCode is Keys.
Return
or Keys.Escape)
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
539
case Keys.
Return
:
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1813
case Keys.
Return
:
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
613
if (e.KeyCode == Keys.
Return
&& UserEdit)
System\Windows\Forms\Form.cs (1)
4699
case Keys.
Return
:
System\Windows\Forms\Input\Keys.cs (1)
90
Enter =
Return
,
System\Windows\Forms\Input\KeysConverter.cs (1)
40
AddLocalizedKey(nameof(SR.toStringEnter), Keys.
Return
);
System\Windows\Forms\SendKeys\SendKeys.cs (2)
24
new("ENTER", Keys.
Return
),
603
vk = (int)Keys.
Return
;
System.Windows.Forms.Design (14)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
66
if ((keyData & Keys.KeyCode) == Keys.
Return
&& Multiline && (keyData & Keys.Alt) == 0)
106
if (e is { Control: true, KeyCode: Keys.
Return
, Modifiers: Keys.Control })
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (1)
97
case Keys.
Return
:
System\Drawing\Design\ColorEditor.ColorUI.ColorEditorListBox.cs (1)
18
Keys.
Return
=> true,
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
284
if (ke.KeyCode == Keys.
Return
)
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
79
if ((keyData & Keys.KeyCode) == Keys.
Return
&& (keyData & (Keys.Alt | Keys.Control)) == 0)
System\Drawing\Design\SelectionPanelBase.cs (1)
81
case Keys.
Return
:
System\Drawing\SelectionPanelBase.SelectionPanelRadioButton.cs (1)
21
Keys.Left or Keys.Right or Keys.Up or Keys.Down or Keys.
Return
=> true,
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
298
if ((keyData & Keys.KeyCode) == Keys.
Return
&& (keyData & (Keys.Alt | Keys.Control)) == 0)
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1877
return (key == Keys.
Return
) || base.IsInputKey(key);
2090
if (e.KeyData == Keys.
Return
&& SelectedNode is not null)
2101
return key == Keys.
Return
|| base.IsInputKey(key);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1087
case Keys.
Return
:
1564
case Keys.
Return
:
System.Windows.Forms.Tests (8)
System\Windows\Forms\ControlTests.Methods.cs (3)
4391
yield return new object[] { Keys.
Return
, false };
4421
yield return new object[] { Keys.Control | Keys.
Return
, false };
4451
yield return new object[] { Keys.Alt | Keys.
Return
, false };
System\Windows\Forms\TabControlTests.cs (3)
3993
yield return new object[] { Keys.
Return
, false };
4018
yield return new object[] { Keys.Control | Keys.
Return
, false };
4047
yield return new object[] { Keys.Alt | Keys.
Return
, false };
System\Windows\Forms\UpDownBaseTests.cs (2)
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 };