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)
172if (result.FindForm() == owningForm) 855Form? toolStripForm = topMostToolStrip.FindForm(); 975Form? mainForm = control.FindForm(); 1065if (toolStrip.AllowMerge && container == toolStrip.FindForm())
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
369return ParentInternal.FindForm(); 377return FindForm(); 494Form? f = FindForm(); 561Form? 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)
1936Assert.Equal(form, control.FindForm()); 1943Assert.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)
911Form form = lb.FindForm()!;
Infra\ControlTestBase.cs (1)
178await MoveMouseAsync(control.FindForm()!, centerOnScreen);