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