4 writes to ValidationCancelled
System.Windows.Forms (4)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
1898currentActiveControl.ValidationCancelled = false; 1939currentActiveControl.ValidationCancelled = ev.Cancel; 1945currentActiveContainerControl._focusedControl.ValidationCancelled = true; 1974children[i].ValidationCancelled = false;
39 references to ValidationCancelled
System.Windows.Forms (39)
System\Windows\Forms\Control.cs (2)
1411get => GetState(States.ValidationCancelled) || (ParentInternal is { } parent && parent.ValidationCancelled); 11549if (fireClick && !ValidationCancelled)
System\Windows\Forms\Controls\Buttons\Button.cs (3)
232if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !ValidationCancelled) 272if (!ValidationCancelled && (validate || validatedControlAllowsFocusChange)) 301if (!ValidationCancelled)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1148if (GetFlag(FlagMouseDown) && !ValidationCancelled) 1359if (m.WParamInternal.HIWORD == PInvoke.BN_CLICKED && !ValidationCancelled)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
495if (!ValidationCancelled) 526if (!ValidationCancelled)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (3)
376if (!ValidationCancelled) 476if (!ValidationCancelled) 495if (!ValidationCancelled)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1646if (_mouseEvents && !ValidationCancelled) 3705if (_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)
5892if (!ValidationCancelled) 6649if (!ValidationCancelled && displayIndex != -1) 6978if (!ValidationCancelled && _listViewState[LISTVIEWSTATE_doubleclickFired] && index != -1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2197if (!ValidationCancelled)
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
680if (ValidationCancelled) 1711if (ValidationCancelled) 2059if (ValidationCancelled)
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
920bool wasValidationCancelled = ValidationCancelled; 923(!ValidationCancelled || wasValidationCancelled))
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1474if (!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)
696if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !ValidationCancelled)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (3)
116if (!_parent.ValidationCancelled && e.Button == MouseButtons.Left) 213if (!_parent.ValidationCancelled && e.Button == MouseButtons.Left) 226if (!_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)
266if (!ValidationCancelled)
System\Windows\Forms\UserControl.cs (1)
312if (!ValidationCancelled)