20 references to Control
System.Windows.Forms (20)
winforms\Managed\System\WinForms\ToolStripPanel.cs (3)
1234
if (cell.
Control
!= null) {
1235
ToolStripPanelRow currentlyAssignedRow = ((ISupportToolStripPanel)cell.
Control
).ToolStripPanelRow;
1242
Debug.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)
111
if (
Control
!= null &&
Control
.ParentInternal == ToolStripPanelRow.ToolStripPanel) {
117
Control
.Visible = value;
149
if (MaximumSize.Height >=
Control
.PreferredSize.Height) {
157
if (MaximumSize.Height + growBy >=
Control
.PreferredSize.Height) {
158
int freed =
Control
.PreferredSize.Height - MaximumSize.Height;
166
if (MaximumSize.Height + growBy <
Control
.PreferredSize.Height) {
179
if (MaximumSize.Width >=
Control
.PreferredSize.Width) {
187
if (MaximumSize.Width + growBy >=
Control
.PreferredSize.Width) {
188
int freed =
Control
.PreferredSize.Width - MaximumSize.Width;
196
if (MaximumSize.Width + growBy <
Control
.PreferredSize.Width) {
362
if (!
Control
.Visible) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (5)
444
Size minSize = GetMinimumSize(currentCell.
Control
as ToolStrip);
526
Size minSize = GetMinimumSize(currentCell.
Control
as ToolStrip);
2129
control = (cell != null) ? cell.
Control
: null;
2137
if (cell.
Control
== c) {
2305
return (cell == null) ? null : cell.
Control
;