5 writes to ValidationCancelled
System.Windows.Forms (4)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
1891
currentActiveControl.
ValidationCancelled
= false;
1932
currentActiveControl.
ValidationCancelled
= ev.Cancel;
1936
currentActiveContainerControl._focusedControl?.
ValidationCancelled
= true;
1964
children[i].
ValidationCancelled
= false;
System.Windows.Forms.Tests (1)
System\Windows\Forms\ControlTests.Internals.cs (1)
166
ValidationCancelled
= expected
40 references to ValidationCancelled
System.Windows.Forms (39)
System\Windows\Forms\Control.cs (2)
1499
get => GetState(States.ValidationCancelled) || (ParentInternal is { } parent && parent.
ValidationCancelled
);
11685
if (fireClick && !
ValidationCancelled
)
System\Windows\Forms\Controls\Buttons\Button.cs (3)
268
if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !
ValidationCancelled
)
308
if (!
ValidationCancelled
&& (validate || validatedControlAllowsFocusChange))
337
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1206
if (GetFlag(FlagMouseDown) && !
ValidationCancelled
)
1421
if (m.WParamInternal.HIWORD == PInvoke.BN_CLICKED && !
ValidationCancelled
)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
515
if (!
ValidationCancelled
)
546
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (3)
393
if (!
ValidationCancelled
)
493
if (!
ValidationCancelled
)
512
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1652
if (_mouseEvents && !
ValidationCancelled
)
3732
if (_mouseEvents && !
ValidationCancelled
)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1555
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
2422
if (!_doubleClickFired && !
ValidationCancelled
)
2433
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\ListView\ListView.cs (3)
5960
if (!
ValidationCancelled
)
6714
if (!
ValidationCancelled
&& displayIndex != -1)
7043
if (!
ValidationCancelled
&& _listViewState[LISTVIEWSTATE_doubleclickFired] && index != -1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2214
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
683
if (
ValidationCancelled
)
1727
if (
ValidationCancelled
)
2088
if (
ValidationCancelled
)
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
901
bool wasValidationCancelled =
ValidationCancelled
;
904
(!
ValidationCancelled
|| wasValidationCancelled))
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1483
if (!
ValidationCancelled
&& PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND)
System\Windows\Forms\Controls\TreeView\TreeView.cs (5)
2682
if (!
ValidationCancelled
)
3033
if (hnode != 0 && !
ValidationCancelled
)
3270
if (!
ValidationCancelled
&& CheckBoxes)
3304
if (!
ValidationCancelled
&& !_treeViewState[TREEVIEWSTATE_doubleclickFired] & !_treeViewState[TREEVIEWSTATE_mouseUpFired])
3320
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
694
if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !
ValidationCancelled
)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (3)
122
if (!_parent.
ValidationCancelled
&& e.Button == MouseButtons.Left)
221
if (!_parent.
ValidationCancelled
&& e.Button == MouseButtons.Left)
234
if (!_parent.
ValidationCancelled
&& PInvoke.WindowFromPoint(PointToScreen(e.Location)) == HWND)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
66
if (!_parent.
ValidationCancelled
&& PInvoke.WindowFromPoint(PointToScreen(e.Location)) == HWND)
System\Windows\Forms\Form.cs (1)
262
if (!
ValidationCancelled
)
System\Windows\Forms\UserControl.cs (1)
312
if (!
ValidationCancelled
)
System.Windows.Forms.Tests (1)
System\Windows\Forms\ControlTests.Internals.cs (1)
169
Assert.Equal(expected, control.
ValidationCancelled
);