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