146 references to DesignMode
System (10)
services\io\system\io\FileSystemWatcher.cs (3)
304
if (
DesignMode
) {
354
if (this.synchronizingObject == null &&
DesignMode
) {
672
return initializing ||
DesignMode
;
services\monitoring\system\diagnosticts\EventLog.cs (1)
243
return this.
DesignMode
;
services\monitoring\system\diagnosticts\PerformanceCounter.cs (1)
467
if (!initialized && !
DesignMode
) {
services\monitoring\system\diagnosticts\Process.cs (1)
1020
if (this.synchronizingObject == null &&
DesignMode
) {
services\timers\system\timers\Timer.cs (4)
85
if (
DesignMode
)
109
if (
DesignMode
) {
196
if (this.
DesignMode
)
217
if (this.synchronizingObject == null &&
DesignMode
) {
System.Data (2)
fx\src\data\System\Data\Common\DbDataAdapter.cs (1)
274
if (
DesignMode
&& ((null == command) || (null == command.Connection) || ADP.IsEmpty(command.CommandText))) {
fx\src\data\System\Data\OleDb\OleDbConnection.cs (1)
361
if (
DesignMode
) {
System.Messaging (4)
System\Messaging\MessageQueue.cs (4)
506
if (this.
DesignMode
)
690
if (this.formatter == null && !
DesignMode
)
1008
if (
DesignMode
)
1240
if (this.synchronizingObject == null &&
DesignMode
)
System.Web.Mobile (1)
UI\MobileControls\Design\Util\UnsettableComboBox.cs (1)
121
if (!
DesignMode
)
System.Windows.Forms (126)
winforms\Managed\System\WinForms\AxHost.cs (1)
1262
if (
DesignMode
&& hook != axState[renameEventHooked])
winforms\Managed\System\WinForms\BindingNavigator.cs (2)
523
if (!
DesignMode
) {
554
countItem.Text =
DesignMode
? CountItemFormat : String.Format(CultureInfo.CurrentCulture, CountItemFormat, count);
winforms\Managed\System\WinForms\BindingSource.cs (2)
316
if (this.initializing ||
DesignMode
) {
352
if (this.initializing ||
DesignMode
) {
winforms\Managed\System\WinForms\ButtonBase.cs (3)
167
if (
DesignMode
) {
722
Animate(!
DesignMode
&& Visible && Enabled && ParentInternal != null);
824
if (!
DesignMode
&& AutoEllipsis && ShowToolTip && textToolTip != null) {
winforms\Managed\System\WinForms\ComboBox.cs (5)
1297
if (!
DesignMode
) {
1375
return AccessibilityImprovements.Level3 && !
DesignMode
;
1714
if (!
DesignMode
) {
1734
if (!
DesignMode
) {
1755
if (!
DesignMode
&& (childEdit != null && m.HWnd == childEdit.Handle) && !LocalAppContextSwitches.EnableLegacyIMEFocusInComboBox) {
winforms\Managed\System\WinForms\Control.cs (1)
4169
if (!IsHandleCreated ||
DesignMode
) {
winforms\Managed\System\WinForms\Control.Ime.cs (3)
290
if( !
DesignMode
&& ImeModeConversion.InputLanguageTable != ImeModeConversion.UnsupportedTable ) {
472
if (!
DesignMode
&& (inputLanguageTable != ImeModeConversion.UnsupportedTable) && Focused) {
606
Debug.Assert( !
DesignMode
, "Shouldn't be updating cached ime mode at design-time" );
winforms\Managed\System\WinForms\DataGrid.cs (2)
8725
if (gridTable.GridColumnStyles.Count == 0 && !
DesignMode
) {
8966
if (dgrid.
DesignMode
&& dgrid.Site != null) {
winforms\Managed\System\WinForms\DataGridView.cs (7)
4785
if (this.IsHandleCreated && !this.
DesignMode
)
4812
if (!this.layout.dirty && !this.
DesignMode
)
4839
if (this.IsHandleCreated && !this.
DesignMode
)
4867
if (!this.layout.dirty && !this.
DesignMode
)
4934
if (this.IsHandleCreated && !this.
DesignMode
)
4958
if (!this.layout.dirty && !this.
DesignMode
)
5041
return AccessibilityImprovements.Level3 && !
DesignMode
;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (5)
566
if (this.
DesignMode
||
11667
if (this.
DesignMode
)
15129
OnDataError(!this.
DesignMode
/*displayErrorDialogIfNoHandler*/, e);
15521
if (this.
DesignMode
)
29931
if (nmhdr->code == NativeMethods.TTN_GETDISPINFO && !
DesignMode
)
winforms\Managed\System\WinForms\DataGridViewToolTip.cs (1)
45
if (this.dataGridView.
DesignMode
)
winforms\Managed\System\WinForms\Form.cs (7)
624
Debug.Assert(!
DesignMode
, "Form designer should not allow base size set in design mode.");
713
Control toLayout =
DesignMode
|| ParentInternal == null ? this : ParentInternal;
2548
if (!value && ((Form)this).IsMdiContainer && !
DesignMode
) {
4715
if (!
DesignMode
&& Enabled && Active) {
4749
if (
DesignMode
) {
4841
if (formState[FormStateAutoScaling] == 1 && !
DesignMode
) {
7704
if (!owner.TopLevel && !owner.
DesignMode
) {
winforms\Managed\System\WinForms\GroupBox.cs (1)
749
return AccessibilityImprovements.Level3 && !
DesignMode
;
winforms\Managed\System\WinForms\Label.cs (3)
1056
Animate(!
DesignMode
&& Visible && Enabled && ParentInternal != null);
1398
if (!controlToolTip && !
DesignMode
&& AutoEllipsis && showToolTip && textToolTip != null) {
1710
return AccessibilityImprovements.Level3 && !
DesignMode
;
winforms\Managed\System\WinForms\ListView.cs (4)
1828
bool keepTopItem = this.IsHandleCreated && VirtualMode && this.View == View.Details && !this.
DesignMode
;
1836
if (IsHandleCreated && VirtualMode && !
DesignMode
)
4339
if (VirtualMode && VirtualListSize > -1 && !
DesignMode
) {
8850
return owner.
DesignMode
;
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
510
if( !this.flagState[IS_NULL_MASK]&& !this.Focused && !this.MaskFull && !this.
DesignMode
)
1913
else if (this.
DesignMode
) // Not RO and at design time, always show prompt.
winforms\Managed\System\WinForms\NotifyIcon.cs (2)
688
if (
DesignMode
) {
762
if (
DesignMode
) {
winforms\Managed\System\WinForms\Panel.cs (1)
284
if (
DesignMode
&& borderStyle == BorderStyle.None) {
winforms\Managed\System\WinForms\PictureBox.cs (2)
602
if (!
DesignMode
)
1166
Animate(!
DesignMode
&& Visible && Enabled && ParentInternal != null);
winforms\Managed\System\WinForms\ProgressBar.cs (3)
98
else if (this.Style == ProgressBarStyle.Marquee && !
DesignMode
) {
345
if (!
DesignMode
) {
862
return AccessibilityImprovements.Level3 && !
DesignMode
;
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
2180
if (!
DesignMode
) {
4770
return AccessibilityImprovements.Level3 && !
DesignMode
;
winforms\Managed\System\WinForms\SplitContainer.cs (8)
1447
if (
DesignMode
&& Width != DefaultSize.Width && value + Panel2MinSize + SplitterWidth > Width) {
1452
if (
DesignMode
&& Height != DefaultSize.Height && value + Panel2MinSize + SplitterWidth > Height) {
1471
if (
DesignMode
&& Width != DefaultSize.Width && value + Panel1MinSize + SplitterWidth > Width) {
1477
if (
DesignMode
&& Height != DefaultSize.Height && value + Panel1MinSize + SplitterWidth > Height) {
1495
if (
DesignMode
&& value + Panel1MinSize + Panel2MinSize > Width) {
1501
if (
DesignMode
&& value + Panel1MinSize + Panel2MinSize > Height) {
2579
if (!owner.
DesignMode
) {
2589
if (!owner.
DesignMode
) {
winforms\Managed\System\WinForms\StatusBar.cs (2)
691
if (!
DesignMode
) {
991
if (IsHandleCreated && !
DesignMode
) {
winforms\Managed\System\WinForms\StatusStrip.cs (2)
190
if (
DesignMode
) {
366
return AccessibilityImprovements.Level3 && !
DesignMode
; ;
winforms\Managed\System\WinForms\TabControl.cs (4)
350
if (ShowToolTips && !
DesignMode
) {
1753
if (
DesignMode
&& IsHandleCreated) {
1964
if (c != null && !
DesignMode
) {
2091
if (c != null && !
DesignMode
) {
winforms\Managed\System\WinForms\TabPage.cs (1)
133
if (
DesignMode
) {
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
648
if(
DesignMode
) {
winforms\Managed\System\WinForms\Timer.cs (3)
165
if (!
DesignMode
) {
221
Debug.Assert(
DesignMode
|| timerWindow != null, "Why don't we have a timer HWND?");
225
if (!
DesignMode
&& timerWindow != null) {
winforms\Managed\System\WinForms\ToolBar.cs (1)
433
if (ShowToolTips && !
DesignMode
) cp.Style |= NativeMethods.TBSTYLE_TOOLTIPS;
winforms\Managed\System\WinForms\ToolStrip.cs (10)
706
if (
DesignMode
&& actualDock == DockStyle.Left)
714
if (
DesignMode
&& Dock == DockStyle.Left)
1286
return
DesignMode
;
1471
if (!
DesignMode
) {
1484
if (!
DesignMode
) {
1659
return AccessibilityImprovements.Level3 && !
DesignMode
&& !IsTopInDesignMode;
2637
if (!
DesignMode
) {
3547
if (!
DesignMode
) {
4092
if (!
DesignMode
&& !TabStop && (Focused || ContainsFocus)) {
4799
return new WindowsFormsUtils.ReadOnlyControlCollection(this, /* isReadOnly = */ !
DesignMode
);
winforms\Managed\System\WinForms\ToolStripContainer.cs (2)
471
if (!owner.
DesignMode
) {
480
if (!owner.
DesignMode
) {
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
123
return (
DesignMode
|| this.Control.CanSelect);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (3)
448
if (IsHandleCreated && !
DesignMode
) {
1159
if (
DesignMode
) {
1979
if (!
DesignMode
&& IsFirstDropDown && OwnerItem != null && TopLevel) {
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (2)
557
if (Enabled ||
DesignMode
) {
580
if (Enabled ||
DesignMode
) {
winforms\Managed\System\WinForms\ToolStripItem.cs (8)
1446
return
DesignMode
;
1714
if (
DesignMode
) //InDesignMode the Extender property will set it to the right value.
2149
return CanSelect && !
DesignMode
&& (state[stateSelected] ||
2170
if (!
DesignMode
) {
2466
Animate(!
DesignMode
&& Visible && Enabled && ParentInternal != null);
2805
if (!
DesignMode
) {
2843
if (!
DesignMode
) {
3414
if (!CanSelect || !Enabled ||
DesignMode
) {
winforms\Managed\System\WinForms\ToolStripLabel.cs (1)
63
get { return (IsLink ||
DesignMode
); }
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
1102
if (!
DesignMode
){
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
213
return
DesignMode
;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
81
return
DesignMode
;
winforms\Managed\System\WinForms\ToolTip.cs (6)
143
if (!
DesignMode
&& GetHandleCreated()) {
1002
&& handlesCreated && !
DesignMode
) {
1064
&& handlesCreated && !
DesignMode
) {
1341
if (!
DesignMode
) {
1474
if (exists && !empty && handlesCreated && !
DesignMode
) {
1488
else if (empty && exists && !
DesignMode
) {
winforms\Managed\System\WinForms\TreeView.cs (2)
393
if (ShowNodeToolTips && IsHandleCreated && !
DesignMode
) {
1997
if (ShowNodeToolTips && !
DesignMode
) {
winforms\Managed\System\WinForms\UserControl.cs (1)
107
Control toLayout =
DesignMode
|| ParentInternal == null ? this : ParentInternal;
winforms\Managed\System\WinForms\WebBrowserBase.cs (6)
464
if (!
DesignMode
) {
798
if (
DesignMode
) {
857
return Site == null || !
DesignMode
;
974
if (!
DesignMode
) {
1121
if (this.
DesignMode
) {
1154
bool resetExtents =
DesignMode
;
System.Windows.Forms.DataVisualization (3)
WinForm\ChartWinControl.cs (3)
405
if(!this.
DesignMode
)
457
if(!this.
DesignMode
)
2005
return this.
DesignMode
;