20 references to Control
System.Windows.Forms (20)
winforms\Managed\System\WinForms\ToolStripPanel.cs (3)
1234if (cell.Control != null) { 1235ToolStripPanelRow currentlyAssignedRow = ((ISupportToolStripPanel)cell.Control).ToolStripPanelRow; 1242Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Detected orphan cell! {0} is in row {1}. It shouldnt have a cell in {2}! \r\n\r\nTurn on DEBUG_PAINT in ToolStripPanel and ToolStripPanelRow to investigate.", cell.Control.Name, goodRowIndex, i));
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (12)
111if (Control != null && Control.ParentInternal == ToolStripPanelRow.ToolStripPanel) { 117Control.Visible = value; 149if (MaximumSize.Height >= Control.PreferredSize.Height) { 157if (MaximumSize.Height + growBy >= Control.PreferredSize.Height) { 158int freed = Control.PreferredSize.Height - MaximumSize.Height; 166if (MaximumSize.Height + growBy < Control.PreferredSize.Height) { 179if (MaximumSize.Width >= Control.PreferredSize.Width) { 187if (MaximumSize.Width + growBy >= Control.PreferredSize.Width) { 188int freed = Control.PreferredSize.Width - MaximumSize.Width; 196if (MaximumSize.Width + growBy < Control.PreferredSize.Width) { 362if (!Control.Visible) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (5)
444Size minSize = GetMinimumSize(currentCell.Control as ToolStrip); 526Size minSize = GetMinimumSize(currentCell.Control as ToolStrip); 2129control = (cell != null) ? cell.Control : null; 2137if (cell.Control == c) { 2305return (cell == null) ? null : cell.Control;