19 references to FindForm
System.Windows.Forms (13)
System\Windows\Forms\Control.Ime.cs (2)
518if (FindForm() is Form form) 534if (FindForm() is Form form)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
193if (FindForm() is { } form)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (4)
173if (result.FindForm() == owningForm) 856Form? toolStripForm = topMostToolStrip.FindForm(); 976Form? mainForm = control.FindForm(); 1066if (toolStrip.AllowMerge && container == toolStrip.FindForm())
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
370return ParentInternal.FindForm(); 378return FindForm(); 495Form? f = FindForm(); 562Form? form = FindForm();
System\Windows\Forms\ToolTip\ToolTip.cs (2)
1762Form? baseFrom = tool.FindForm(); 1865Form? baseFrom = tool.FindForm();
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlTests.Methods.cs (2)
1969Assert.Equal(form, control.FindForm()); 1976Assert.Null(control.FindForm());
System\Windows\Forms\FormTests.cs (2)
2586(Form form, Control control) => form.Show(owner: control.FindForm()) 2590(Form form, Control control) => form.ShowDialog(owner: control.FindForm())
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (1)
852Form form = lb.FindForm()!;
Infra\ControlTestBase.cs (1)
178await MoveMouseAsync(control.FindForm()!, centerOnScreen);