1 override of ParentInternal
System.Windows.Forms (1)
winforms\Managed\System\WinForms\Form.cs (1)
2249internal override Control ParentInternal {
4 writes to ParentInternal
System.Windows.Forms (4)
winforms\Managed\System\WinForms\Control.cs (1)
3438ParentInternal = value;
winforms\Managed\System\WinForms\Form.cs (1)
2257base.ParentInternal = value;
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
953toolStripToDrag.ParentInternal = this;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (1)
2228control.ParentInternal = owner.ToolStripPanel;
346 references to ParentInternal
System.Windows.Forms (346)
winforms\Managed\System\WinForms\AxHost.cs (18)
597if (ParentInternal != null) { 598ParentInternal.CreateControl(true); 1878if (ParentInternal != null) { // ==> we are in a valid state 1891if ((IsHandleCreated || value) && ParentInternal != null && ParentInternal.Created) { 2317return ContainingControl != ParentInternal; 2341control = control.ParentInternal; 2398Control richParent = ParentInternal; 2469Control parent = ParentInternal; 3345if (ParentInternal == null) return; 3346if (!ParentInternal.IsHandleCreated) return; 3347ShowPropertyPages(ParentInternal); 3569for (Control c = this; c != null; c = c.ParentInternal) { 3583for (Control c = this; c != null; c = c.ParentInternal) { 4229Control parent = host.ParentInternal; 4277lpFrameInfo.hwndFrame = host.ParentInternal.Handle; 4447Control p = ParentInternal; 5485Control p = ctl.ParentInternal;
winforms\Managed\System\WinForms\Button.cs (4)
91if(ParentInternal != null) { 95if(ParentInternal.LayoutEngine == DefaultLayout.Instance) { 96ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 98LayoutTransaction.DoLayout(ParentInternal, this, PropertyNames.AutoSize);
winforms\Managed\System\WinForms\ButtonBase.cs (8)
288LayoutTransaction.DoLayoutIf(AutoSize,ParentInternal, this, PropertyNames.FlatStyle); 358LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.Image); 387LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.ImageAlign); 668LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.TextAlign); 694LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.TextImageRelation); 716LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.Text); 722Animate(!DesignMode && Visible && Enabled && ParentInternal != null); 1056using(LayoutTransaction.CreateTransactionIf(AutoSize, ParentInternal, this, PropertyNames.Text)) {
winforms\Managed\System\WinForms\CheckBox.cs (2)
122using (LayoutTransaction.CreateTransactionIf(AutoSize, this.ParentInternal, this, PropertyNames.Appearance)) { 198LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.CheckAlign);
winforms\Managed\System\WinForms\ComboBox.cs (3)
2411using (new LayoutTransaction(ParentInternal, this, PropertyNames.Bounds)) 3452if ((DropDownStyle == ComboBoxStyle.Simple) && ParentInternal != null) { 3455Control p = ParentInternal;
winforms\Managed\System\WinForms\ContainerControl.cs (31)
362if (ParentInternal != null) { 363return ParentInternal.FindFormInternal(); 399Control parent = this.ParentInternal; 498else if (activeControl == null && ParentInternal != null) 502cc = ParentInternal.GetContainerControlInternal() as ContainerControl; 529Control parent = cc.ParentInternal; 687Control parent = cc.ParentInternal; 1105if (!excludedFactor.IsEmpty && ParentInternal != null) { 1116ISite parentSite = ParentInternal.Site; 1145group = activeControl.ParentInternal; 1218if (ParentInternal == null) { 1327Control current = ctl.ParentInternal; 1329current = current.ParentInternal; 1356if (ParentInternal != null) 1358IContainerControl c = ParentInternal.GetContainerControlInternal(); 1393if (value != null && value.ParentInternal != null) 1395cc = (value.ParentInternal.GetContainerControlInternal()) as ContainerControl; 1411while (ccAncestor.ParentInternal != null && 1412ccAncestor.ParentInternal.GetContainerControlInternal() is ContainerControl) 1414ccAncestor = ccAncestor.ParentInternal.GetContainerControlInternal() as ContainerControl; 1483Control parent = nextControlDown.ParentInternal; 1486nextControlDown = nextControlDown.ParentInternal; 1523if (!(innerMostFCC.ParentInternal != null && innerMostFCC.ParentInternal is MdiClient)) 1534if (innerMostFCC.ParentInternal != null) 1536ContainerControl cc = (innerMostFCC.ParentInternal.GetContainerControlInternal()) as ContainerControl; 1552pathControl = pathControl.ParentInternal; 1666commonAncestor = commonAncestor.ParentInternal; 1819currentValidatingControl = currentValidatingControl.ParentInternal; 1899if (ParentInternal != null) { 1900IContainerControl c = ParentInternal.GetContainerControlInternal();
winforms\Managed\System\WinForms\Control.cs (85)
938DefaultLayout.SetAnchor(ParentInternal, this, value); 955if(ParentInternal != null) { 959if(value && ParentInternal.LayoutEngine == DefaultLayout.Instance) { 960ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 962LayoutTransaction.DoLayout(ParentInternal, this, PropertyNames.AutoSize); 1088Control p = ParentInternal; 1287Control p = ParentInternal; 1938Control parent = container.ParentInternal; 1969Control parent = this.ParentInternal; 2058Control p = ParentInternal; 2255Control control = ParentInternal; 2263control = control.ParentInternal; 2433else if (ParentInternal == null) 2436return ParentInternal.Enabled; 2566using(new LayoutTransaction(ParentInternal, this, PropertyNames.Font)) { 2685if (ParentInternal != null && ParentInternal.CanAccessProperties) { 2686localFontHeight = ParentInternal.FontHeight; 2718Control p = ParentInternal; 2767if (ParentInternal != null && ParentInternal.CanAccessProperties) 2768return ParentInternal.Font; 2993Control parent = ParentInternal; 2995while (parent.ParentInternal != null ) { 2996parent = parent.ParentInternal; 3435return ParentInternal; 3750Control parent = ParentInternal; 4064for( Control ctl = this; ctl != null; ctl = ctl.ParentInternal ) { 4134control = control.ParentInternal; 4144while (control.ParentInternal != null) { 4145control = control.ParentInternal; 4336LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.UseCompatibleTextRendering); 4778using (new LayoutTransaction(ParentInternal, this, PropertyNames.Padding)) { 5534if (ParentInternal != null) ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.All); 5665for (Control ctl = bottom; ctl != null; ctl = ctl.ParentInternal) { 5708ctl = ctl.ParentInternal; 5839LayoutTransaction.DoLayout(ParentInternal, this, PropertyNames.Bounds); 5852if (Properties.GetObject(PropBindingManager) == null && ParentInternal != null && !controlIsAlreadyCreated) { 6267cur = cur.ParentInternal; 6285Control p = c.ParentInternal; 6372if (Focused && this.ParentInternal != null) { 6373IContainerControl c = this.ParentInternal.GetContainerControlInternal(); 6548c = c.ParentInternal; 6551c = c.ParentInternal; 6654else if (ParentInternal == null) 6657return ParentInternal.GetVisibleCore(); 7562control = control.ParentInternal; 8089if (ParentInternal != null) { 8090ParentInternal.OnChildLayoutResuming(child, performLayout); 8402Control parent = ParentInternal; 8413if (ReflectParent == ParentInternal) { 9048if (ParentInternal != null) { 9049ParentInternal.OnHelpRequested(hevent); 9138if(parentRequiresLayout && ParentInternal != null) { 9143ParentInternal.SetState(STATE_LAYOUTISDIRTY, true); 9155if (ParentInternal != null) { 9156ParentInternal.OnChildLayoutResuming(this, performLayout); 9769Control parent = this.ParentInternal; 9888for (Control c = this.ParentInternal; c != null; c = c.ParentInternal) { 9984if(ParentInternal != null && ParentInternal.GetState(STATE_LAYOUTISDIRTY)) { 9985LayoutTransaction.DoLayout(ParentInternal, this, PropertyNames.PreferredSize); 11556if (DpiHelper.EnableAnchorLayoutHighDpiImprovements && (ParentInternal != null) && (ParentInternal.LayoutEngine == DefaultLayout.Instance)) { 11713if (ContainsFocus && ParentInternal != null) { 11714IContainerControl c = ParentInternal.GetContainerControlInternal(); 11810LayoutTransaction.DoLayout(ParentInternal, this, PropertyNames.Bounds); 11834LayoutTransaction.DoLayout(ParentInternal, this, PropertyNames.Bounds); 11863if (ParentInternal != null) { 11867ParentInternal.SuspendLayout(); 11914if (ParentInternal != null) { 11919CommonProperties.xClearPreferredSizeCache(ParentInternal); 11925ParentInternal.LayoutEngine.InitLayout(this, specified); 11926ParentInternal.ResumeLayout( /* performLayout = */ true ); 12598LayoutTransaction.DoLayout(ParentInternal, this, PropertyNames.Bounds); 12794if (ParentInternal != null) { 13960if (ParentInternal != null) { 13961parentVisible = ParentInternal.Visible; 14472return ParentInternal; 15035if (value.ParentInternal == owner) { 16157Control controlParent = this.ParentInternal; 19525Control parentControl = ownerControl.ParentInternal; 19782Control parent = Owner.ParentInternal;
winforms\Managed\System\WinForms\Control.Ime.cs (1)
114Control parent = ParentInternal;
winforms\Managed\System\WinForms\DataGrid.cs (1)
1615if (this.ContainsFocus && this.ParentInternal == null) {
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (4)
144if (edit.ParentInternal != null) { 145edit.ParentInternal.Controls.Remove(edit); 628if (edit.ParentInternal != null) { 629edit.ParentInternal.Controls.Remove(edit);
winforms\Managed\System\WinForms\DataGridView.cs (5)
1420using (LayoutTransaction.CreateTransactionIf(this.AutoSize, this.ParentInternal, this, PropertyNames.BorderStyle)) 2137using (LayoutTransaction.CreateTransactionIf(this.AutoSize, this.ParentInternal, this, PropertyNames.ColumnHeadersVisible)) 4276using (LayoutTransaction.CreateTransactionIf(this.AutoSize, this.ParentInternal, this, PropertyNames.RowHeadersVisible)) 4330using (LayoutTransaction.CreateTransactionIf(this.AutoSize, this.ParentInternal, this, PropertyNames.RowHeadersWidth)) 4576using (LayoutTransaction.CreateTransactionIf(this.AutoSize, this.ParentInternal, this, PropertyNames.ScrollBars))
winforms\Managed\System\WinForms\DataGridViewCell.cs (12)
1316if (dgv.EditingControl.ParentInternal != null) 1333Debug.Assert(dgv.EditingControl.ParentInternal == dgv.EditingPanel); 1336Debug.Assert(dgv.EditingControl.ParentInternal == null); 1356if (dgv.EditingPanel.ParentInternal != null) 1358Debug.Assert(dgv.EditingPanel.ParentInternal == dgv); 1361Debug.Assert(dgv.EditingPanel.ParentInternal == null); 1364Debug.Assert(dgv.EditingControl.ParentInternal == null); 1365Debug.Assert(dgv.EditingPanel.ParentInternal == null); 2730if (dgv.EditingControl.ParentInternal == null) 2738Debug.Assert(dgv.EditingPanel.ParentInternal == null); 2743Debug.Assert(dgv.EditingControl.ParentInternal == dgv.EditingPanel); 2744Debug.Assert(dgv.EditingPanel.ParentInternal == dgv);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
1524if (comboBox.ParentInternal != null) 1526h = comboBox.ParentInternal.Handle;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (7)
13752LayoutTransaction.DoLayout(this.ParentInternal, this, PropertyNames.Columns); 14987LayoutTransaction.DoLayout(this.ParentInternal, this, PropertyNames.Columns); 18003LayoutTransaction.DoLayout(this.ParentInternal, this, PropertyNames.Rows); 26801using (LayoutTransaction.CreateTransactionIf(this.AutoSize, this.ParentInternal, this, PropertyNames.ColumnHeadersHeight)) 29051LayoutTransaction.DoLayout(this.ParentInternal, this, PropertyNames.Rows); 29095LayoutTransaction.DoLayout(this.ParentInternal, this, PropertyNames.Rows); 29112LayoutTransaction.DoLayout(this.ParentInternal, this, PropertyNames.Rows);
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
1589control.Visible && control.ParentInternal != null && 1591window = provider.EnsureErrorWindow(control.ParentInternal);
winforms\Managed\System\WinForms\FlatButtonAppearance.cs (2)
55if (owner != null && owner.ParentInternal != null) { 56LayoutTransaction.DoLayoutIf(owner.AutoSize, owner.ParentInternal, owner, PropertyNames.FlatAppearanceBorderSize);
winforms\Managed\System\WinForms\Form.cs (2)
2251return base.ParentInternal; 3777if (ctlClient != null && ctlClient.IsHandleCreated && ctlClient.ParentInternal == this){
winforms\Managed\System\WinForms\GroupBox.cs (4)
137if(ParentInternal != null) { 141if(ParentInternal.LayoutEngine == DefaultLayout.Instance) { 142ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 144LayoutTransaction.DoLayout(ParentInternal, this, PropertyNames.AutoSize);
winforms\Managed\System\WinForms\Label.cs (10)
196if (ParentInternal != null) { 197LayoutTransaction.DoLayoutIf(AutoSize,ParentInternal, this, PropertyNames.AutoEllipsis); 293if (ParentInternal != null) { 294LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.BorderStyle); 431LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.BorderStyle); 665LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.ImageAlign); 999using (LayoutTransaction.CreateTransactionIf(AutoSize, ParentInternal, this, PropertyNames.Text)) { 1056Animate(!DesignMode && Visible && Enabled && ParentInternal != null); 1481using(LayoutTransaction.CreateTransactionIf(AutoSize, ParentInternal, this, PropertyNames.Text)) { 1643Control parent = ParentInternal;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (4)
708if (tlp != null && tlp.ParentInternal != null && tlp.ParentInternal.LayoutEngine == DefaultLayout.Instance) { 818if (tlp != null && tlp.ParentInternal != null && tlp.ParentInternal.LayoutEngine == DefaultLayout.Instance) {
winforms\Managed\System\WinForms\LinkLabel.cs (4)
264LayoutTransaction.DoLayout(ParentInternal, this, PropertyNames.LinkArea); 2156LayoutTransaction.DoLayout(this.owner.ParentInternal, this.owner, PropertyNames.Links); 2296LayoutTransaction.DoLayout(this.owner.ParentInternal, this.owner, PropertyNames.Links); 2338LayoutTransaction.DoLayout(this.owner.ParentInternal, this.owner, PropertyNames.Links);
winforms\Managed\System\WinForms\ListBox.cs (2)
451LayoutTransaction.DoLayoutIf(AutoSize, this.ParentInternal, this, PropertyNames.DrawMode); 1857if (this.ParentInternal != null) {
winforms\Managed\System\WinForms\MDIClient.cs (20)
66if (result == null && ParentInternal != null) 67result = ParentInternal.BackgroundImage; 84if (backgroundImage != null && ParentInternal != null) 87if (imageLayout != ParentInternal.BackgroundImageLayout) 90return ParentInternal.BackgroundImageLayout; 121ISite site = (ParentInternal == null) ? null : ParentInternal.Site; 127if (this.RightToLeft == RightToLeft.Yes && this.ParentInternal != null && this.ParentInternal.IsMirrored) { 191ISite site = (ParentInternal == null) ? null : ParentInternal.Site; 238ISite site = (ParentInternal == null) ? null : ParentInternal.Site; 356if (ParentInternal != null && ParentInternal.Site != null && ParentInternal.Site.DesignMode && Handle != IntPtr.Zero) { 362InvokeGotFocus(ParentInternal, EventArgs.Empty); 364if (ParentInternal is Form) { 365childForm = ((Form)ParentInternal).ActiveMdiChildInternal; 381InvokeLostFocus(ParentInternal, EventArgs.Empty);
winforms\Managed\System\WinForms\Panel.cs (4)
108if(ParentInternal != null) { 112if(ParentInternal.LayoutEngine == DefaultLayout.Instance) { 113ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 115LayoutTransaction.DoLayout(ParentInternal, this, PropertyNames.AutoSize);
winforms\Managed\System\WinForms\PictureBox.cs (1)
1166Animate(!DesignMode && Visible && Enabled && ParentInternal != null);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (13)
2301Control cParent = c.ParentInternal; 2307cParent = cParent.ParentInternal; 2333Control parent1 = c1.ParentInternal; 2334Control parent2 = c2.ParentInternal; 2340parent2 = parent2.ParentInternal; 3673if (this.Disposing || this.ParentInternal == null || this.ParentInternal.Disposing) { 3690if (this.Disposing || this.ParentInternal == null || this.ParentInternal.Disposing) { 3694if (this.Visible && this.ParentInternal != null) { 4920while (topControl.ParentInternal != null) { 4921topControl = topControl.ParentInternal; 5503cp.Parent = gridView.ParentInternal.Handle;
winforms\Managed\System\WinForms\RadioButton.cs (3)
135using (LayoutTransaction.CreateTransactionIf(AutoSize, this.ParentInternal, this, PropertyNames.Appearance)) { 501Control parent = ParentInternal; 525 Control parent = ParentInternal;
winforms\Managed\System\WinForms\RichTextBox.cs (2)
805using (LayoutTransaction.CreateTransactionIf(AutoSize, ParentInternal, this, PropertyNames.ScrollBars)) { 1471using(LayoutTransaction.CreateTransactionIf(AutoSize, ParentInternal, this, PropertyNames.Text)) {
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
952if (activeControl.ParentInternal != this) { 954bounds = this.RectangleToClient(activeControl.ParentInternal.RectangleToScreen(bounds));
winforms\Managed\System\WinForms\SplitContainer.cs (20)
372if (this.ParentInternal != null) { 373if (this.ParentInternal is SplitterPanel) { 374SplitContainer sc = (SplitContainer)((SplitterPanel)this.ParentInternal).Owner; 441if (this.ParentInternal != null) { 442if (this.ParentInternal is SplitterPanel) { 443SplitContainer sc = (SplitContainer)((SplitterPanel)this.ParentInternal).Owner; 1322IContainerControl c = this.ParentInternal.GetContainerControlInternal(); 1693group = ActiveControl.ParentInternal; 1921Control parent = this.ParentInternal; 1924if (parent.SelectNextControl(this, forward, true, true, parent.ParentInternal == null)) { 1927parent = parent.ParentInternal; 1942if (!Contains(ctl) || !nested && ctl.ParentInternal != this) ctl = null; 1956if (!forward && firstPanel != null && ctl.ParentInternal != firstPanel) { 1981IContainerControl c = this.ParentInternal.GetContainerControlInternal(); 2002Control parent = this.ParentInternal; 2028if (!Contains(ctl) || !nested && ctl.ParentInternal != this) ctl = null; 2064if (ctl == null || !(ctl.ParentInternal.Visible)) { 2081if (container.ParentInternal != null) 2083IContainerControl c = container.ParentInternal.GetContainerControlInternal(); 2464IContainerControl c = this.ParentInternal.GetContainerControlInternal();
winforms\Managed\System\WinForms\Splitter.cs (8)
728Control parent = ParentInternal; 772IntPtr parentHandle = ParentInternal.Handle; 773IntPtr dc = UnsafeNativeMethods.GetDCEx(new HandleRef(ParentInternal, parentHandle), NativeMethods.NullHandleRef, NativeMethods.DCX_CACHE | NativeMethods.DCX_LOCKWINDOWUPDATE); 775IntPtr saveBrush = SafeNativeMethods.SelectObject(new HandleRef(ParentInternal, dc), new HandleRef(null, halftone)); 776SafeNativeMethods.PatBlt(new HandleRef(ParentInternal, dc), r.X, r.Y, r.Width, r.Height, NativeMethods.PATINVERT); 777SafeNativeMethods.SelectObject(new HandleRef(ParentInternal, dc), new HandleRef(null, saveBrush)); 779UnsafeNativeMethods.ReleaseDC(new HandleRef(ParentInternal, parentHandle), new HandleRef(null, dc)); 804Control parent = ParentInternal;
winforms\Managed\System\WinForms\StatusBar.cs (1)
1111Control parent = ParentInternal;
winforms\Managed\System\WinForms\TabPage.cs (9)
125TabControl parent = ParentInternal as TabControl; 194TabControl parent = ParentInternal as TabControl; 225TabControl parent = ParentInternal as TabControl; 552c = c.ParentInternal; 653TabControl parent = ParentInternal as TabControl; 679TabControl parent = ParentInternal as TabControl; 700TabControl parent = ParentInternal as TabControl; 740Control parent = ParentInternal; 775TabControl parent = ParentInternal as TabControl;
winforms\Managed\System\WinForms\TextBoxBase.cs (3)
408using(LayoutTransaction.CreateTransactionIf(AutoSize, ParentInternal, this, PropertyNames.BorderStyle)) { 845using (LayoutTransaction.CreateTransactionIf(AutoSize, ParentInternal, this, PropertyNames.Multiline)) { 1353using (LayoutTransaction.CreateTransactionIf(AutoSize, ParentInternal, this, PropertyNames.WordWrap)) {
winforms\Managed\System\WinForms\ToolStrip.cs (12)
483Control p = ParentInternal; 704DockStyle actualDock = (ParentInternal != null) ? ParentInternal.Dock : DockStyle.Left; 722if (IsInToolStripPanel && ParentInternal != null) { 723dock = ParentInternal.Dock; // we want the orientation of the ToolStripPanel; 768using (new LayoutTransaction(this.ParentInternal, this, PropertyNames.Dock)) { 3250Debug.Assert(this.ParentInternal as ToolStripPanel != null, "Why is our parent not a toolstrip panel?"); 3261Debug.Assert(this.ParentInternal as ToolStripPanel != null, "Why is our parent not a toolstrip panel?"); 4242if (ParentInternal != null) { 4243IContainerControl c = ParentInternal.GetContainerControlInternal(); 4657if (this.ParentInternal != null) { 4658LayoutTransaction.DoLayout(this.ParentInternal, this, PropertyNames.Orientation);
winforms\Managed\System\WinForms\ToolStripContentPanel.cs (2)
118if (this.ParentInternal is ToolStripContainer && value == Color.Transparent) { 119this.ParentInternal.BackColor = Color.Transparent;
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
851= GetControlCollection(Control.ParentInternal as ToolStrip);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1224if ((ownerItem != null) && (ownerItem is ToolStripDropDownItem) && (ParentInternal != null)) { 1225parentClientPoint = ParentInternal.PointToClient(((ToolStripDropDownItem)ownerItem).DropDownLocation);
winforms\Managed\System\WinForms\ToolStripManager.cs (2)
334if (start == null || start.ParentInternal == null) { 1577activeControlInChain = activeControlInChain.ParentInternal;
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
82get { return ParentInternal; }
winforms\Managed\System\WinForms\ToolStripPanel.cs (4)
552if (e.AffectedComponent != ParentInternal && e.AffectedComponent as Control != null) { 1207if (ParentInternal != null) { 1209bounds.Width = ParentInternal.DisplayRectangle.Width; 1212bounds.Height = ParentInternal.DisplayRectangle.Height;
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
111if (Control != null && Control.ParentInternal == ToolStripPanelRow.ToolStripPanel) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (6)
942if ((!ToolStripPanel.Visible || LayoutUtils.IsZeroWidthOrHeight(raftingDisplayRectangle)) && (ToolStripPanel.ParentInternal != null)){ 945displayRect.Width = ToolStripPanel.ParentInternal.DisplayRectangle.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) - Row.Margin.Horizontal; 1453if ((!ToolStripPanel.Visible || LayoutUtils.IsZeroWidthOrHeight(raftingDisplayRectangle)) && (ToolStripPanel.ParentInternal != null)){ 1455displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) - Row.Margin.Vertical; 2215if (ToolStripPanel != null && ToolStripPanel.ParentInternal != null) { 2216layoutTransaction = new LayoutTransaction(ToolStripPanel, ToolStripPanel.ParentInternal, PropertyNames.Parent);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (2)
737if (toolStrip.ParentInternal != null) { 981Control parent = control.ParentInternal;
winforms\Managed\System\WinForms\ToolTip.cs (4)
609if (ctl != null && ctl.ParentInternal != null) { 610while (ctl.ParentInternal != null) { 611ctl = ctl.ParentInternal; 1313current = current.ParentInternal;
winforms\Managed\System\WinForms\UpDownBase.cs (2)
1826return Owner.ParentInternal.GetType().Name; 1919return (((UpDownButtons)parent.Owner).ParentInternal).RectangleToScreen(bounds);
winforms\Managed\System\WinForms\UserControl.cs (2)
107Control toLayout = DesignMode || ParentInternal == null ? this : ParentInternal;
winforms\Managed\System\WinForms\WebBrowser.cs (2)
1512if (this.ParentInternal != null) { 1513this.ParentInternal.Controls.Remove(this);
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
529Control parent = ParentInternal; 1220for (Control control = this; control != null; control = control.ParentInternal) {
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (2)
317lpFrameInfo.hwndFrame = (this.Host.ParentInternal == null) ? IntPtr.Zero : this.Host.ParentInternal.Handle;