186 references to DesignMode
System.ComponentModel.TypeConverter (4)
System\Timers\Timer.cs (4)
85if (DesignMode) 111if (DesignMode) 203if (DesignMode) 220if (_synchronizingObject == null && DesignMode)
System.Data.Common (1)
System\Data\Common\DbDataAdapter.cs (1)
314if (DesignMode && ((null == command) || (null == command.Connection) || string.IsNullOrEmpty(command.CommandText)))
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
691return _initializing || DesignMode;
System.Windows.Forms (113)
System\Windows\Forms\ActiveX\AxHost.cs (1)
865if (DesignMode && hook != _axState[s_renameEventHooked])
System\Windows\Forms\Control.cs (1)
3234if (!IsHandleCreated || DesignMode)
System\Windows\Forms\Control.Ime.cs (3)
177if (!DesignMode && ImeModeConversion.InputLanguageTable != ImeModeConversion.UnsupportedTable) 320if (!DesignMode && (inputLanguageTable != ImeModeConversion.UnsupportedTable) && Focused) 452Debug.Assert(!DesignMode, "Shouldn't be updating cached ime mode at design-time");
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
159if (DesignMode) 744private void Animate() => Animate(!DesignMode && Visible && Enabled && ParentInternal is not null); 841if (!DesignMode && AutoEllipsis && ShowToolTip && _textToolTip is not null)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
1114if (DesignMode) 1505if (!DesignMode) 1528if (!DesignMode) 1554if (!DesignMode && _childEdit is not null && m.HWnd == _childEdit.Handle)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (6)
3776if (IsHandleCreated && !DesignMode) 3807if (!_layout._dirty && !DesignMode) 3828if (IsHandleCreated && !DesignMode) 3860if (!_layout._dirty && !DesignMode) 3916if (IsHandleCreated && !DesignMode) 3940if (!_layout._dirty && !DesignMode)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
552if (DesignMode 11468if (DesignMode) 14653OnDataError(displayErrorDialogIfNoHandler: !DesignMode, e); 15012if (DesignMode) 30046if (nmhdr->code == PInvoke.TTN_GETDISPINFOW && !DesignMode)
System\Windows\Forms\Controls\DataGridView\DataGridView.ToolTip.cs (1)
23if (_dataGridView.DesignMode || !_dataGridView.IsHandleCreated)
System\Windows\Forms\Controls\Labels\Label.cs (2)
849internal void Animate() => Animate(!DesignMode && Visible && Enabled && ParentInternal is not null); 1150if (!_controlToolTip && !DesignMode && AutoEllipsis && _showToolTip && _textToolTip is not null)
System\Windows\Forms\Controls\ListView\ListView.cs (3)
1870bool keepTopItem = IsHandleCreated && VirtualMode && View == View.Details && !DesignMode; 1879if (IsHandleCreated && VirtualMode && !DesignMode) 4622if (VirtualMode && VirtualListSize > -1 && !DesignMode)
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (1)
33public bool OwnerIsDesignMode => _owner.DesignMode;
System\Windows\Forms\Controls\Menus\MenuStrip.cs (2)
169if (!TabStop && !DesignMode && IsAccessibilityObjectCreated) 187if (!TabStop && !DesignMode && IsAccessibilityObjectCreated)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
498if (!DesignMode) 972private void Animate() => Animate(animate: !DesignMode && Visible && Enabled && ParentInternal is not null);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (2)
58else if (Style == ProgressBarStyle.Marquee && !DesignMode) 239if (!DesignMode)
System\Windows\Forms\Controls\TabControl\TabControl.cs (4)
288if (ShowToolTips && !DesignMode) 1648if (DesignMode && IsHandleCreated) 1862if (c is not null && !DesignMode) 1976if (c is not null && !DesignMode)
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
121if (DesignMode)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
462if (!_flagState[s_isNullMask] && !Focused && !MaskFull && !DesignMode) 1708else if (DesignMode) // Not RO and at design time, always show prompt.
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
552get => (DesignMode || CanEnableIme) ? base.ImeModeBase : ImeMode.Disable;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
166if (DesignMode)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (9)
580if (DesignMode && actualDock == DockStyle.Left) 588if (DesignMode && Dock == DockStyle.Left) 1140return DesignMode; 1304if (!DesignMode) 1322if (!DesignMode) 2442if (!DesignMode) 3371if (!DesignMode) 3977if (!DesignMode && !TabStop && (Focused || ContainsFocus)) 4672return new ReadOnlyControlCollection(this, isReadOnly: !DesignMode);
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.ToolStripContainerTypedControlCollection.cs (2)
47if (!_owner.DesignMode) 63if (!_owner.DesignMode)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
88public override bool CanSelect => _control is not null && (DesignMode || _control.CanSelect);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (3)
322if (IsHandleCreated && !DesignMode) 953if (DesignMode) 1754if (!DesignMode && IsFirstDropDown && OwnerItem is not null && TopLevel)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (2)
575if (Enabled || DesignMode) 594if (Enabled || DesignMode)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (8)
1215internal bool IsInDesignMode => DesignMode; 1389if (DesignMode) 1765=> CanSelect && !DesignMode && (_state[s_stateSelected] || 1794=> DesignMode || ToolStripManager.ShowMenuFocusCues; 2024=> Animate(!DesignMode && Visible && Enabled && ParentInternal is not null); 2409if (!DesignMode) 2452if (!DesignMode) 3023if (!CanSelect || !Enabled || DesignMode)
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
67get { return (IsLink || DesignMode); }
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
996if (!DesignMode)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
165return DesignMode;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
48public override bool CanSelect => DesignMode;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
378if (ShowNodeToolTips && IsHandleCreated && !DesignMode) 1876if (ShowNodeToolTips && !DesignMode)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (6)
404if (!DesignMode) 727if (DesignMode) 794internal bool IsUserMode => Site is null || !DesignMode; 906if (!DesignMode) 1046if (DesignMode) 1085bool resetExtents = DesignMode;
System\Windows\Forms\DataBinding\BindingNavigator.cs (2)
515if (!DesignMode) 573_countItem.Text = DesignMode ? CountItemFormat : string.Format(CultureInfo.CurrentCulture, CountItemFormat, count);
System\Windows\Forms\DataBinding\BindingSource.cs (2)
264if (_state.HasFlag(BindingSourceStates.Initializing) || DesignMode) 301if (_state.HasFlag(BindingSourceStates.Initializing) || DesignMode)
System\Windows\Forms\Form.ControlCollection.cs (1)
33if (!_owner.TopLevel && !_owner.DesignMode)
System\Windows\Forms\Form.cs (6)
462Debug.Assert(!DesignMode, "Form designer should not allow base size set in design mode."); 546Control toLayout = DesignMode || ParentInternal is null ? this : ParentInternal; 1965if (!value && IsMdiContainer && !DesignMode) 4079if (!DesignMode && Enabled && Active) 4110if (DesignMode) 4233if (_formState[s_formStateAutoScaling] == 1 && !DesignMode)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (6)
1259if (DesignMode && Width != DefaultSize.Width && value + Panel2MinSize + SplitterWidth > Width) 1266if (DesignMode && Height != DefaultSize.Height && value + Panel2MinSize + SplitterWidth > Height) 1288if (DesignMode && Width != DefaultSize.Width && value + Panel1MinSize + SplitterWidth > Width) 1295if (DesignMode && Height != DefaultSize.Height && value + Panel1MinSize + SplitterWidth > Height) 1317if (DesignMode && value + Panel1MinSize + Panel2MinSize > Width) 1324if (DesignMode && value + Panel1MinSize + Panel2MinSize > Height)
System\Windows\Forms\Layout\Containers\SplitContainer.SplitContainerTypedControlCollection.cs (2)
24if (value is SplitterPanel && !_owner.DesignMode && IsReadOnly) 40if (_owner.DesignMode)
System\Windows\Forms\NotifyIcon.cs (2)
560if (DesignMode) 629if (DesignMode)
System\Windows\Forms\Panels\Panel.cs (1)
220if (DesignMode && _borderStyle == BorderStyle.None)
System\Windows\Forms\Timer.cs (2)
104if (DesignMode) 154if (Enabled && !DesignMode)
System\Windows\Forms\ToolTip\ToolTip.cs (6)
115if (!DesignMode && GetHandleCreated()) 852&& handlesCreated && !DesignMode) 911if (_created.Contains(control) && handlesCreated && !DesignMode) 1127if (DesignMode) 1245if (exists && !empty && handlesCreated && !DesignMode) 1251else if (empty && exists && !DesignMode)
System\Windows\Forms\UserControl.cs (1)
81Control toLayout = DesignMode || ParentInternal is null ? this : ParentInternal;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
1030public new bool DesignMode => base.DesignMode;
System.Windows.Forms.Tests (64)
System\Windows\Forms\AxHostTests.cs (1)
3188public new bool DesignMode => base.DesignMode;
System\Windows\Forms\BindingSourceTests.cs (1)
837public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ButtonBaseTests.cs (1)
9291public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ButtonTests.cs (1)
3699public new bool DesignMode => base.DesignMode;
System\Windows\Forms\CheckBoxTests.cs (1)
654public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ColorDialogTests.cs (1)
367public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ColumnHeaderTests.cs (1)
1663public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ComboBoxTests.cs (1)
2843public new bool DesignMode => base.DesignMode;
System\Windows\Forms\CommonDialogTests.cs (1)
271public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ContainerControlTests.cs (1)
1433public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ControlTests.cs (1)
1166public new bool DesignMode => base.DesignMode;
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
2126public new bool DesignMode => base.DesignMode;
System\Windows\Forms\DateTimePickerTests.cs (1)
1028public new bool DesignMode => base.DesignMode;
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
402public new bool DesignMode => base.DesignMode;
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
905public new bool DesignMode => base.DesignMode;
System\Windows\Forms\DomainUpDownTests.cs (1)
1492public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ErrorProviderTests.cs (1)
1367public new bool DesignMode => base.DesignMode;
System\Windows\Forms\FileDialogTests.cs (1)
830public new bool DesignMode => base.DesignMode;
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
452public new bool DesignMode => base.DesignMode;
System\Windows\Forms\FontDialogTests.cs (1)
756public new bool DesignMode => base.DesignMode;
System\Windows\Forms\FormTests.cs (1)
2712public new bool DesignMode => base.DesignMode;
System\Windows\Forms\GroupBoxTests.cs (1)
2317public new bool DesignMode => base.DesignMode;
System\Windows\Forms\HelpProviderTests.cs (1)
567public new bool DesignMode => base.DesignMode;
System\Windows\Forms\HScrollBarTests.cs (1)
266public new bool DesignMode => base.DesignMode;
System\Windows\Forms\LabelTests.cs (1)
901public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ListBoxTests.cs (1)
6424public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ListControlTests.cs (1)
2932public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ListViewTests.cs (1)
6119public new bool DesignMode => base.DesignMode;
System\Windows\Forms\MenuStripTests.cs (1)
876public new bool DesignMode => base.DesignMode;
System\Windows\Forms\MonthCalendarTests.cs (1)
4748public new bool DesignMode => base.DesignMode;
System\Windows\Forms\PanelTests.cs (1)
1174public new bool DesignMode => base.DesignMode;
System\Windows\Forms\PictureBoxTests.cs (1)
2860public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ProgressBarTests.cs (1)
2604public new bool DesignMode => base.DesignMode;
System\Windows\Forms\PropertyGridTests.cs (1)
4165public new bool DesignMode => base.DesignMode;
System\Windows\Forms\RadioButtonTests.cs (1)
1547public new bool DesignMode => base.DesignMode;
System\Windows\Forms\RichTextBoxTests.cs (1)
10944public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ScrollableControlTests.cs (1)
2592public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ScrollBarTests.cs (1)
3180public new bool DesignMode => base.DesignMode;
System\Windows\Forms\SplitterTests.cs (1)
2325public new bool DesignMode => base.DesignMode;
System\Windows\Forms\StatusStripTests.cs (1)
1298public new bool DesignMode => base.DesignMode;
System\Windows\Forms\TabControlTests.cs (1)
5741public new bool DesignMode => base.DesignMode;
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2191public new bool DesignMode => base.DesignMode;
System\Windows\Forms\TabPageTests.cs (1)
5255public new bool DesignMode => base.DesignMode;
System\Windows\Forms\TimerTests.cs (1)
467public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ToolStripButtonTests.cs (1)
1732public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
2036public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ToolStripControlHostTests.cs (1)
4651public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ToolStripDropDownItemTests.cs (1)
521public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5116public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ToolStripItemTests.cs (1)
15509public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
441public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ToolStripPanelTests.cs (1)
379public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
1643public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ToolStripTests.cs (1)
7552public new bool DesignMode => base.DesignMode;
System\Windows\Forms\ToolTipTests.cs (1)
919public new bool DesignMode => base.DesignMode;
System\Windows\Forms\TreeViewTests.cs (1)
7592public new bool DesignMode => base.DesignMode;
System\Windows\Forms\UpDownBaseTests.cs (1)
3125public new bool DesignMode => base.DesignMode;
System\Windows\Forms\UserControlTests.cs (1)
1817public new bool DesignMode => base.DesignMode;
System\Windows\Forms\VScrollBarTests.cs (1)
256public new bool DesignMode => base.DesignMode;
System\Windows\Forms\WebBrowserTests.cs (1)
4686public new bool DesignMode => base.DesignMode;
TextBoxBaseTests.cs (1)
7703public new bool DesignMode => base.DesignMode;
TextBoxTests.cs (1)
701public new bool DesignMode => base.DesignMode;
TrackBarTests.cs (1)
3298public new bool DesignMode => base.DesignMode;
WebBrowserBaseTests.cs (1)
906public new bool DesignMode => base.DesignMode;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
312DesignerProperties.SetIsInDesignMode(childFrameworkElement, this.DesignMode); 791if (!DesignMode && m.WParam == IntPtr.Zero)