4 writes to ValidationCancelled
System.Windows.Forms (3)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (3)
1891
currentActiveControl.
ValidationCancelled
= false;
1932
currentActiveControl.
ValidationCancelled
= ev.Cancel;
1964
children[i].
ValidationCancelled
= false;
System.Windows.Forms.Tests (1)
System\Windows\Forms\ControlTests.Internals.cs (1)
166
ValidationCancelled
= expected
41 references to ValidationCancelled
System.Windows.Forms (40)
System\Windows\Forms\Control.cs (2)
1480
get => GetState(States.ValidationCancelled) || (ParentInternal is { } parent && parent.
ValidationCancelled
);
11653
if (fireClick && !
ValidationCancelled
)
System\Windows\Forms\Controls\Buttons\Button.cs (3)
269
if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !
ValidationCancelled
)
309
if (!
ValidationCancelled
&& (validate || validatedControlAllowsFocusChange))
338
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1207
if (GetFlag(FlagMouseDown) && !
ValidationCancelled
)
1422
if (m.WParamInternal.HIWORD == PInvoke.BN_CLICKED && !
ValidationCancelled
)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
517
if (!
ValidationCancelled
)
548
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)
1647
if (_mouseEvents && !
ValidationCancelled
)
3706
if (_mouseEvents && !
ValidationCancelled
)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1557
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
2424
if (!_doubleClickFired && !
ValidationCancelled
)
2435
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\ListView\ListView.cs (3)
5969
if (!
ValidationCancelled
)
6727
if (!
ValidationCancelled
&& displayIndex != -1)
7056
if (!
ValidationCancelled
&& _listViewState[LISTVIEWSTATE_doubleclickFired] && index != -1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2198
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
685
if (
ValidationCancelled
)
1734
if (
ValidationCancelled
)
2095
if (
ValidationCancelled
)
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
920
bool wasValidationCancelled =
ValidationCancelled
;
923
(!
ValidationCancelled
|| wasValidationCancelled))
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1489
if (!
ValidationCancelled
&& PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND)
System\Windows\Forms\Controls\TreeView\TreeView.cs (5)
2695
if (!
ValidationCancelled
)
3046
if (hnode != 0 && !
ValidationCancelled
)
3283
if (!
ValidationCancelled
&& CheckBoxes)
3317
if (!
ValidationCancelled
&& !_treeViewState[TREEVIEWSTATE_doubleclickFired] & !_treeViewState[TREEVIEWSTATE_mouseUpFired])
3333
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
692
if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !
ValidationCancelled
)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (3)
112
if (!_parent.
ValidationCancelled
&& e.Button == MouseButtons.Left)
209
if (!_parent.
ValidationCancelled
&& e.Button == MouseButtons.Left)
222
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)
263
if (!
ValidationCancelled
)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1936
currentActiveContainerControl._focusedControl?.
ValidationCancelled
= true;
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
);