91 types derived from Form
DemoConsole (1)
MainForm.cs (1)
8
public partial class MainForm :
Form
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
13
Inherits
Form
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
17
Inherits
Form
PresentationUI (1)
MS\Internal\Documents\DialogBaseForm.cs (1)
16
internal class DialogBaseForm :
Form
ScratchProject (1)
Form1.cs (1)
10
public partial class Form1 :
Form
ScratchProjectWithInternals (1)
Form1.cs (1)
10
public partial class Form1 :
Form
System.Windows.Forms (7)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
13
internal partial class GridErrorDialog :
Form
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
13
internal sealed partial class DropDownHolder :
Form
, IMouseHookClient
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
14
public partial class ComponentEditorForm :
Form
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
15
public class ThreadExceptionDialog :
Form
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
6
internal sealed partial class MdiWindowDialog :
Form
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
10
private partial class StatusDialog :
Form
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
19
public partial class PrintPreviewDialog :
Form
System.Windows.Forms.Design (9)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (1)
11
private class BinaryUI :
Form
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (1)
15
protected abstract class CollectionForm :
Form
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
13
internal class FlyoutDialog :
Form
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
12
internal class DataGridViewAddColumnDialog :
Form
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
9
internal class DataGridViewCellStyleBuilder :
Form
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
10
internal class DataGridViewColumnCollectionDialog :
Form
System\Windows\Forms\Design\FormatStringDialog.cs (1)
9
internal class FormatStringDialog :
Form
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
14
internal class LinkAreaUI :
Form
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
14
internal class MaskDesignerDialog :
Form
System.Windows.Forms.Tests (6)
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
208
private class FocusEventsCounterForm :
Form
System\Windows\Forms\ApplicationContextTests.cs (1)
416
private class SubForm :
Form
System\Windows\Forms\FormTests.cs (3)
2688
public partial class ParentedForm :
Form
2708
public class ParentingForm :
Form
2718
public class SubForm :
Form
System\Windows\Forms\SendKeysTests.cs (1)
29
private class CaptureForm :
Form
System.Windows.Forms.TestUtilities (1)
DialogHostForm.cs (1)
17
internal class DialogHostForm :
Form
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
636
private class DragDropForm :
Form
946
private class DragImageDropDescriptionForm :
Form
TestPassApp (13)
CommonControl1.cs (1)
8
public partial class CommonControl1 :
Form
CommonControl2.cs (1)
8
public partial class CommonControl2 :
Form
ContainerControls.cs (1)
8
public partial class ContainerControls :
Form
ContainerControls2.cs (1)
8
public partial class ContainerControls2 :
Form
DataBindingExample.cs (1)
9
public partial class DataBindingExample :
Form
DataControls.cs (1)
9
public partial class DataControls :
Form
DialogControls.cs (1)
8
public partial class DialogControls :
Form
Main.cs (1)
8
public partial class Main :
Form
Menu_Toolbars_controls.cs (1)
8
public partial class Menu_Toolbars_controls :
Form
MenuForm.cs (1)
8
public partial class MenuForm :
Form
PrintingControls.cs (1)
9
public partial class PrintingControls :
Form
RemainingControls.cs (1)
8
public partial class RemainingControls :
Form
ToolStripContainer.cs (1)
8
public partial class ToolStripContainer :
Form
TrimTest (1)
Form1.cs (1)
10
public partial class Form1 :
Form
TrimTestBinaryDeserialization (1)
Form1.cs (1)
9
public partial class Form1 :
Form
WinFormsControlsTest (45)
AnchorLayoutTests.cs (1)
7
public partial class AnchorLayoutTests :
Form
Buttons.cs (1)
9
public partial class Buttons :
Form
Calendar.cs (1)
9
public partial class Calendar :
Form
ChartControl.cs (1)
10
public partial class ChartControl :
Form
CollectionEditors.cs (1)
15
internal partial class CollectionEditors :
Form
ComboBoxes.cs (1)
9
public partial class ComboBoxes :
Form
ComboBoxesWithScrollBars.cs (1)
9
public partial class ComboBoxesWithScrollBars :
Form
CustomComCtl32Button.cs (1)
10
internal class CustomComCtl32Button :
Form
DataGridViewInVirtualModeTest.cs (1)
7
public partial class DataGridViewInVirtualModeTest :
Form
DataGridViewTest.cs (1)
9
public partial class DataGridViewTest :
Form
DateTimePicker.cs (1)
7
public partial class DateTimePicker :
Form
DesignTimeAligned.cs (1)
7
public partial class DesignTimeAligned :
Form
Dialogs.cs (1)
13
public partial class Dialogs :
Form
DockLayoutTests.cs (1)
7
public partial class DockLayoutTests :
Form
DragDrop.cs (1)
11
public partial class DragDrop :
Form
ErrorProviderTest.cs (1)
7
public partial class ErrorProviderTest :
Form
FormBorderStyles.cs (1)
7
public partial class FormBorderStyles :
Form
FormOwnerTestForm.cs (2)
9
internal class FormOwnerTestForm :
Form
54
public class MemoryTestParentForm :
Form
FormShowInTaskbar.cs (1)
9
public class FormShowInTaskbar :
Form
ListBoxes.cs (1)
9
public partial class ListBoxes :
Form
ListViewTest.cs (1)
8
public partial class ListViewTest :
Form
MainForm.cs (1)
14
public partial class MainForm :
Form
MdiChild.cs (1)
7
public partial class MdiChild :
Form
MdiParent.cs (1)
9
public partial class MdiParent :
Form
MediaPlayer.cs (1)
7
public partial class MediaPlayer :
Form
MenuStripAndCheckedListBox.cs (1)
9
public partial class MenuStripAndCheckedListBox :
Form
MessageBoxes.cs (1)
9
public partial class MessageBoxes :
Form
MultipleControls.cs (1)
9
public partial class MultipleControls :
Form
Panels.cs (1)
7
public partial class Panels :
Form
Password.cs (1)
7
public partial class Password :
Form
PictureBoxes.cs (1)
7
public partial class PictureBoxes :
Form
PropertyGrid.cs (1)
7
public partial class PropertyGrid :
Form
RichTextBoxes.cs (1)
11
public partial class RichTextBoxes :
Form
ScalingBeforeChanges.cs (1)
14
public partial class ScalingBeforeChanges :
Form
ScrollableControls.cs (1)
7
public partial class ScrollableControls :
Form
ScrollBars.cs (1)
7
public partial class ScrollBars :
Form
Splitter.cs (1)
7
public partial class Splitter :
Form
TaskDialogSamples.cs (1)
9
public class TaskDialogSamples :
Form
TextBoxes.cs (1)
7
public partial class TextBoxes :
Form
ToolStripSeparatorPreferredSize.cs (1)
7
internal class ToolStripSeparatorPreferredSize :
Form
ToolStripTests.cs (1)
9
public partial class ToolStripTests :
Form
ToolTipTests.cs (1)
7
public partial class ToolTipTests :
Form
TrackBars.cs (1)
7
public partial class TrackBars :
Form
TreeViewTest.cs (1)
7
public partial class TreeViewTest :
Form
292 instantiations of Form
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (2)
26
MyBase.
New
()
31
MyBase.
New
()
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
49
MyBase.
New
()
Microsoft.VisualBasic.Forms.Tests (5)
System\Windows\Forms\WindowsFormsApplicationBaseTests.vb (5)
55
Using form1 As New
Form
64
Using form1 As New
Form
72
Using splashScreenForm As New
Form
73
Using form2 As New
Form
120
Using form1 As New
Form
System.Windows.Forms.Design.Tests (4)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (1)
613
using Form form =
new
();
System\Windows\Forms\Design\EditorServiceContextTests.cs (1)
180
DialogResult result = mockEditorService.Object.ShowDialog(new
Form
());
System\Windows\Forms\Design\InheritanceUITests.cs (1)
24
_form = new
Form
();
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
139
_toolStrip.Parent = new
Form
();
System.Windows.Forms.Tests (233)
NumericUpDownTests.cs (3)
30
using Form form =
new
();
73
using Form form =
new
();
109
using Form form =
new
();
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (5)
545
using Form form =
new
();
573
using Form form =
new
();
596
using Form form =
new
();
2619
using Form form =
new
();
2651
using Form form =
new
();
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1694
using Form form =
new
();
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
550
using Form form =
new
();
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (1)
352
using Form form =
new
();
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (1)
25
_form = new
Form
();
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (9)
18
using Form form =
new
();
28
using Form form =
new
();
42
using Form form =
new
();
60
using Form form =
new
();
94
using Form form =
new
();
107
using Form form =
new
();
174
using Form form =
new
();
193
using Form form =
new
();
194
using Form embeddedForm =
new
() { TopLevel = false };
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
18
using Form form =
new
()
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (2)
135
using Form form =
new
();
344
using Form form =
new
();
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
277
using Form form =
new
();
320
using Form form =
new
();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (2)
186
using Form form =
new
();
216
using Form form =
new
();
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
261
using Form form =
new
();
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
528
using Form form =
new
();
System\Windows\Forms\Application.ParkingWindowTests.cs (1)
41
Form form =
new
();
System\Windows\Forms\ApplicationContextTests.cs (6)
22
yield return new object[] { new
Form
() };
56
MainForm = new
Form
()
173
using Form mainForm =
new
();
187
using Form mainForm =
new
();
250
using Form mainForm =
new
();
264
using Form mainForm =
new
();
System\Windows\Forms\ApplicationTests.cs (6)
391
using Form mainForm = new
Form
();
406
AddMDI(new
Form
());
446
var child = new
Form
529
using Form mainForm = new
Form
();
561
Form other = new
Form
() { Text = "Child" };
627
Form add = new
Form
() { Text = "Add" };
System\Windows\Forms\AxHost.VisualBasic6Tests.cs (1)
20
using Form form =
new
();
System\Windows\Forms\AxSystemMonitorTests.cs (1)
18
_form = new
Form
();
System\Windows\Forms\AxWebBrowserTests.cs (1)
20
_form = new
Form
();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
272
{ new
Form
(), new string[] { "DataContext: Object", "Tag: Object" } },
System\Windows\Forms\ButtonRenderingTests.cs (1)
216
using Form form =
new
();
System\Windows\Forms\ButtonTests.cs (4)
1936
using Form form =
new
();
2018
using Form form =
new
();
3120
using Form form =
new
();
3198
using Form form =
new
();
System\Windows\Forms\CheckBoxRendererTests.cs (4)
20
using Form form =
new
();
56
using Form form =
new
();
93
using Form form =
new
();
129
using Form form =
new
();
System\Windows\Forms\CheckBoxTests.cs (2)
817
using Form form =
new
();
847
using Form form =
new
();
System\Windows\Forms\ControlBindingsCollectionTests.cs (1)
92
using Form control =
new
();
System\Windows\Forms\ControlTests.cs (4)
927
using Form form =
new
() { RightToLeft = rightToLeft, };
984
using Form form =
new
() { RightToLeft = rightToLeft };
1039
using Form form =
new
();
1099
using Form form =
new
();
System\Windows\Forms\ControlTests.Internals.cs (1)
417
using Form form =
new
();
System\Windows\Forms\ControlTests.Methods.cs (1)
1936
Form form =
new
();
System\Windows\Forms\ControlTests.Properties.cs (1)
9680
yield return new object[] { new
Form
() };
System\Windows\Forms\DataGridViewCellTests.cs (7)
202
using Form form =
new
();
845
using Form form =
new
();
881
using Form form =
new
();
4049
using Form form =
new
();
4092
using Form form =
new
();
4356
using Form form =
new
();
5148
using Form form =
new
();
System\Windows\Forms\DataGridViewHeaderCellTests.cs (2)
2415
using Form form =
new
();
3682
using Form form =
new
();
System\Windows\Forms\DataGridViewRowTests.cs (8)
110
using Form form =
new
();
328
using Form form =
new
();
355
using Form form =
new
();
943
using Form form =
new
();
1873
using Form form =
new
();
2342
using Form form =
new
();
4334
using Form form =
new
();
4459
using Form form =
new
();
System\Windows\Forms\DataGridViewTests.cs (1)
2323
using Form form = new
Form
System\Windows\Forms\DataGridViewTests.Rendering.cs (2)
18
using Form form =
new
();
107
using Form form = new
Form
System\Windows\Forms\ErrorProviderTests.cs (2)
857
yield return new object[] { new
Form
(), false };
1317
using Form form =
new
();
System\Windows\Forms\Form.ControlCollectionTests.cs (1)
13
using Form owner =
new
();
System\Windows\Forms\FormTests.cs (89)
196
using Form form =
new
();
213
using Form form =
new
();
226
using Form form =
new
()
254
using Form form =
new
();
255
using Form child =
new
();
266
using Form form =
new
();
267
using Form child =
new
()
282
using Form form =
new
();
283
using Form child =
new
()
297
using Form form =
new
();
298
using Form child =
new
()
313
using Form control =
new
()
347
using Form control =
new
()
377
using Form control =
new
()
407
using Form control =
new
();
456
using Form control =
new
()
504
using Form control =
new
()
552
using Form form =
new
()
569
using Form form =
new
()
584
using Form form =
new
()
599
using Form form =
new
()
626
using Form control =
new
()
660
using Form control =
new
()
683
using Form control =
new
()
715
using Form control =
new
();
751
using Form control =
new
()
797
using Form control =
new
();
842
using Form control =
new
();
892
using Form control =
new
()
929
yield return new object[] { new
Form
() };
936
using Form control =
new
()
957
using Form control =
new
()
985
using Form form =
new
();
1014
using Form form =
new
();
1043
using Form mainForm =
new
();
1046
using Form formAsControl =
new
()
1068
using Form form =
new
();
1077
using Form form =
new
();
1091
using Form form =
new
();
1114
using Form oldParent =
new
()
1118
using Form control =
new
()
1140
using Form control =
new
()
1160
using Form control =
new
()
1194
using Form control =
new
()
1232
using Form control =
new
()
1243
using Form control =
new
();
1252
using Form oldParent =
new
()
1256
using Form control =
new
()
1260
using Form parent =
new
();
1269
using Form parent =
new
();
1276
using Form control =
new
();
1318
using Form control =
new
()
1350
using Form control =
new
()
1384
using Form control =
new
()
1417
using Form control =
new
()
1439
using Form control =
new
()
1461
using Form control =
new
();
1500
using Form control =
new
();
1532
using Form control =
new
()
1574
using Form control =
new
()
1609
using Form control =
new
();
1643
using Form control =
new
();
1676
using Form control =
new
()
1712
using Form control =
new
()
1747
using Form control =
new
();
1781
using Form control =
new
();
1826
using Form control =
new
()
1864
using Form form =
new
()
1902
using Form control =
new
()
1941
using Form parent =
new
()
1946
using Form control =
new
()
1975
using Form control =
new
()
2023
using Form parent =
new
()
2028
using Form control =
new
()
2075
using Form parent =
new
()
2080
using Form control =
new
()
2127
using Form parent =
new
()
2131
using Form control =
new
()
2169
using Form control =
new
()
2224
using Form parent =
new
()
2229
using Form control =
new
()
2277
using Form parent =
new
()
2281
using Form control =
new
()
2330
using Form control =
new
()
2388
using Form control =
new
()
2640
using Form parent =
new
();
2645
using Form child =
new
();
2671
using Form parent =
new
() { IsMdiContainer = true };
2672
using Form mdiChild =
new
() { MdiParent = parent };
System\Windows\Forms\LabelTests.cs (1)
290
using Form form =
new
();
System\Windows\Forms\MdiControlStripTests.cs (11)
19
using Form form =
new
();
159
using Form form =
new
();
177
using Form form =
new
();
204
using Form mdiParent =
new
()
211
using Form mdiChild =
new
()
250
using Form mdiParent =
new
()
257
using Form mdiChild =
new
()
295
using Form mdiParent =
new
() { IsMdiContainer = true };
296
using Form mdiChild =
new
()
317
using Form mdiParent =
new
() { IsMdiContainer = true, Text = "Parent" };
318
using Form mdiChild =
new
() { MdiParent = mdiParent, Text = "Child" };
System\Windows\Forms\MixedDpiHostingTests.cs (1)
26
using Form form =
new
();
System\Windows\Forms\NativeWindowTests.cs (1)
31
using Form control =
new
();
System\Windows\Forms\PictureBoxTests.cs (1)
1120
yield return new object[] { new
Form
() };
System\Windows\Forms\PropertyGridInternal\GridToolTipTests.cs (1)
82
using Form form =
new
();
System\Windows\Forms\RadioButtonRendererTests.cs (5)
18
using Form form = new
Form
();
49
using Form form = new
Form
();
86
using Form form = new
Form
();
115
using Form form = new
Form
();
201
using Form parent =
new
();
System\Windows\Forms\ScrollBarTests.cs (2)
3109
Form form =
new
();
3128
Form form =
new
();
System\Windows\Forms\SplitterPanelTests.cs (1)
716
yield return new object[] { new
Form
() };
System\Windows\Forms\StatusStripTests.Rendering.cs (1)
16
using Form form =
new
();
System\Windows\Forms\TabControlTests.cs (1)
5711
using Form form =
new
();
System\Windows\Forms\TextBoxRendererTests.cs (3)
26
using Form form =
new
();
55
using Form form =
new
();
90
using Form form =
new
();
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (6)
16
using Form form =
new
();
42
using Form form =
new
();
68
using Form form =
new
();
94
using Form form =
new
();
120
using Form form =
new
();
147
using Form form =
new
();
System\Windows\Forms\ToolStripContainer.ToolStripContainerTypedControlCollectionTests.cs (2)
48
using Form form =
new
();
123
using Form form =
new
();
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
112
using Form form =
new
();
System\Windows\Forms\ToolStripPanelRow.ToolStripPanelRowControlCollectionTests.cs (1)
16
using Form form =
new
();
System\Windows\Forms\ToolStripSettingsManagerTests.cs (1)
13
using Form mainForm =
new
();
System\Windows\Forms\ToolStripTests.cs (2)
1628
using Form form =
new
();
1648
using Form form =
new
();
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
16
using Form form =
new
();
System\Windows\Forms\ToolTipTests.cs (2)
838
using Form form =
new
();
879
using Form form =
new
();
System\Windows\Forms\UnsupportedTypesTests.cs (7)
118
using Form form =
new
();
127
using Form form =
new
();
142
using Form form =
new
();
149
using Form form =
new
();
157
using Form form =
new
();
169
using Form form =
new
();
177
using Form form =
new
();
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (1)
505
using Form form =
new
();
System\Windows\Forms\WebBrowserTests.cs (1)
4760
using Form form =
new
();
TextBoxTests.Rendering.cs (1)
18
using Form form =
new
();
System.Windows.Forms.UI.IntegrationTests (41)
AnchorLayoutTests.cs (1)
272
Form form =
new
()
ApplicationTests.cs (2)
21
using Form child =
new
() { RightToLeft = RightToLeft.No };
45
return
new
()
ButtonTests.cs (1)
409
return
new
()
DataGridViewTests.cs (3)
47
using Form form1 =
new
();
48
using Form form2 =
new
();
137
return
new
()
Dpi\FormDpiTests.cs (7)
29
using Form form =
new
();
68
using Form form =
new
();
102
using Form form =
new
();
136
using Form form =
new
();
172
using Form form =
new
();
204
using Form form =
new
();
232
using Form form =
new
();
Dpi\SplitContainerTests.cs (1)
44
using Form form =
new
();
Dpi\ToolStripItemTests.Dpi.cs (1)
33
using Form form =
new
();
DragDropTests.cs (3)
65
await RunFormWithoutControlAsync(() => new
Form
(), async (form) =>
281
await RunFormWithoutControlAsync(() => new
Form
(), async (form) =>
500
await RunFormWithoutControlAsync(() => new
Form
(), async (form) =>
FormTests.cs (1)
146
Form form =
new
()
ImageListTests.cs (1)
108
Form form =
new
()
Infra\ControlTestBase.cs (3)
221
Form form =
new
()
243
form =
new
();
269
Form form =
new
()
ListBoxAccesibleObjectTests.cs (3)
14
using Form form =
new
();
35
using Form form =
new
();
49
using Form form =
new
();
ListBoxItemAccessibleObjestTests.cs (3)
14
using Form form =
new
();
37
using Form formDoubleClick =
new
();
52
using Form form =
new
();
ListViewTests.cs (1)
647
return
new
()
MDITests.cs (3)
20
using Form childForm =
new
()
42
using Form childForm =
new
()
66
return
new
()
MenuStripTests.cs (1)
14
using Form form =
new
();
MonthCalendarTests.cs (2)
216
return
new
()
238
return
new
()
PropertyGridTests.cs (1)
22
_form =
new
() { Controls = { _propertyGrid } };
RichTextBoxTests.cs (1)
249
return
new
()
ToolStripTests.cs (2)
30
using Form form =
new
();
66
using Form form =
new
();
VisualBasicRuntimeTest (1)
Program.cs (1)
81
Form mainForm =
new
();
WinFormsControlsTest (5)
FormOwnerTestForm.cs (1)
63
Form child =
new
();
FormShowInTaskbar.cs (1)
31
using Form form =
new
()
MdiChild.cs (1)
28
Form frm =
new
()
MdiParent.cs (1)
22
Form child =
new
()
RichTextBoxes.cs (1)
119
Form prompt =
new
()
643 references to Form
DemoConsole (8)
DesignSurfaceExtended.cs (1)
115
if (hostType == typeof(
Form
))
MainForm.cs (7)
142
Form
rootComponent = null;
147
rootComponent = surface.CreateRootComponent<
Form
>(new Size(400, 400));
208
rootComponent = surface.CreateRootComponent<
Form
>(new Size(640, 480));
237
rootComponent = surface.CreateRootComponent<
Form
>(new Size(800, 600));
259
rootComponent = surface.CreateRootComponent<
Form
>(new Size(800, 600));
294
rootComponent = surface.CreateRootComponent<
Form
>(new Size(800, 600));
317
rootComponent = surface.CreateRootComponent<
Form
>(new Size(800, 600));
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (2)
InteractiveSessionReferencesTests.cs (2)
211
var options3 = options2.AddReferences(typeof(System.Windows.Forms.
Form
).Assembly.Location);
213
var s3 = await s2.ContinueWithAsync<System.Windows.Forms.
Form
>(@"
Microsoft.VisualBasic.Forms (5)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (5)
109
Private _splashScreen As
Form
281
Public Property SplashScreen() As
Form
285
Set(value As
Form
)
300
Protected Property MainForm() As
Form
304
Set(value As
Form
)
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
CodeModel\CodeModelTestHelpers.vb (1)
39
SystemWindowsFormsPath = GetType(System.Windows.Forms.
Form
).Assembly.Location
PresentationUI (2)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
557
internal bool SignDocument(DigitalSignature digSig,
Form
parentDialog, bool isSaveAs)
MS\Internal\Documents\RightsManagementManager.cs (1)
1631
public
Form
ProgressForm;
System.Windows.Forms (176)
System\Windows\Forms\ActiveX\AxHost.cs (2)
1940
/// the <see cref="GroupBox"/> is contained on a <see cref="
Form
"/>, then the <see cref="ContainingControl"/>
1941
/// property value of the ActiveX control is the <see cref="
Form
"/>, and the <see cref="Control.Parent"/>
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
282
private bool LocalModalMessageLoop(
Form
? form)
System\Windows\Forms\Application.cs (6)
612
foreach (
Form
f in OpenForms)
986
HashSet<
Form
> processedForms = new(s_forms.Count);
991
Form
? form = s_forms[i];
1023
Form
? form = s_forms[^1];
1308
public static void Run(
Form
mainForm)
1323
internal static void RunDialog(
Form
form)
System\Windows\Forms\Application.ModalApplicationContext.cs (1)
16
public ModalApplicationContext(
Form
modalForm) : base(modalForm)
System\Windows\Forms\Application.ThreadContext.cs (2)
65
protected
Form
? CurrentForm { get; private set; }
722
Form
? oldForm = CurrentForm;
System\Windows\Forms\ApplicationContext.cs (6)
17
private
Form
? _mainForm;
31
public ApplicationContext(
Form
? mainForm)
52
public
Form
? MainForm
140
Debug.Assert(sender is
Form
);
141
Form
form = (
Form
)sender;
System\Windows\Forms\Control.cs (12)
4428
Form
? lastOwner = null;
4442
if (lastParent is
Form
f)
4444
for (
Form
? form = f; form is not null; form = form.OwnerInternal)
5083
public
Form
? FindForm()
5086
while (current is not null and not
Form
)
5091
return (
Form
?)current;
7448
if (this is
Form
form && form.TopLevel)
8149
bool formRTL = ((this is
Form
|| this is MdiClient) && IsMirrored);
8872
/// parent. The <see cref="
Form
"/> class overrides this method to perform actual processing of dialog characters.
8886
/// The <see cref="
Form
"/> class overrides this method to perform actual processing of dialog keys.
9000
/// parent. The <see cref="
Form
"/> class overrides this method to perform actual processing of dialog keys.
10264
if (this is
Form
f)
System\Windows\Forms\Control.Ime.cs (4)
518
if (FindForm() is
Form
form)
534
if (FindForm() is
Form
form)
637
Form
? appForm = topMostWinformsParent as
Form
;
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
30
_isModal ??= this.TryGetOwnerAs(out DataGridView? owner) && owner.TopMostParent is
Form
{ Modal: true };
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2921
=> TopLevelControlInternal is
Form
parentForm && parentForm.WindowState == FormWindowState.Minimized;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
314
while (parent is not null and not
Form
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
4855
public DialogResult ShowDialog(
Form
dialog)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (9)
164
internal static ToolStrip? FindToolStrip(
Form
owningForm, string toolStripName)
604
public static void LoadSettings(
Form
targetForm)
614
public static void LoadSettings(
Form
targetForm, string key)
627
public static void SaveSettings(
Form
sourceForm)
637
public static void SaveSettings(
Form
sourceForm, string key)
838
if (Control.FromHandle(rootWindowOfControl) is
Form
mainForm && mainForm.IsMdiContainer)
840
Form
? toolStripForm = topMostToolStrip.FindForm();
910
if (toplevelControl is
Form
mdiChild && mdiChild.IsMdiChild)
960
Form
? mainForm = control.FindForm();
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
108
internal ToolStripMenuItem(
Form
mdiForm)
480
internal
Form
? MdiForm => Properties.GetValueOrDefault<
Form
>(s_propMdiForm);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
1131
&& statusStrip.FindForm() is
Form
f)
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (3)
15
private readonly
Form
_form;
18
internal ToolStripSettingsManager(
Form
owner, string formKey)
257
if (controlsToLookIn[i] is null or
Form
)
System\Windows\Forms\Controls\Unsupported\MainMenu\MainMenu.cs (1)
45
public
Form
GetForm() => throw null;
System\Windows\Forms\DataBinding\Binding.cs (1)
223
if (value is
Form
form)
System\Windows\Forms\Design\IUIService.cs (1)
44
DialogResult ShowDialog(
Form
form);
System\Windows\Forms\Design\IWindowsFormsEditorService.cs (2)
56
/// Shows the specified <see cref="
Form
"/> as a dialog and returns its result. You should always use this
60
DialogResult ShowDialog(
Form
dialog);
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
236
Form
? activeForm = ActiveForm;
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (1)
683
return extendee is Control and not
Form
;
System\Windows\Forms\Form.AccessibleObject.cs (2)
17
internal FormAccessibleObject(
Form
owner) : base(owner)
39
UIA_PROPERTY_ID.UIA_IsDialogPropertyId => (VARIANT)(this.TryGetOwnerAs(out
Form
? owner) && owner.Modal),
System\Windows\Forms\Form.ControlCollection.cs (3)
13
private readonly
Form
_owner;
20
public ControlCollection(
Form
owner)
48
if (value is
Form
form && form.MdiParentInternal is not null)
System\Windows\Forms\Form.cs (58)
176
/// Initializes a new instance of the <see cref="
Form
"/> class.
236
Form
? parentForm = ParentForm;
287
public static
Form
? ActiveForm => FromHandle(PInvokeCore.GetForegroundWindow()) as
Form
;
297
public
Form
? ActiveMdiChild
301
Form
? mdiChild = ActiveMdiChildInternal;
316
mdiChild = FromHandle(hwnd) as
Form
;
332
internal
Form
? ActiveMdiChildInternal
334
get => Properties.GetValueOrDefault<
Form
>(s_propActiveMdiChild);
340
private
Form
? FormerlyActiveMdiChild
342
get => Properties.GetValueOrDefault<
Form
>(s_propFormerlyActiveMdiChild);
801
Form
? formMdiParent = Properties.GetValueOrDefault<
Form
>(s_propFormMdiParent);
802
Form
? form = formMdiParent?.ActiveMdiChildInternal;
869
s_defaultIcon ??= new Icon(typeof(
Form
), "wfc");
1411
public
Form
[] MdiChildren => _ctlClient is not null ? _ctlClient.MdiChildren : ([]);
1445
public
Form
? MdiParent
1451
private
Form
? MdiParentInternal
1453
get => Properties.GetValueOrDefault<
Form
>(s_propFormMdiParent);
1456
Form
? formMdiParent = Properties.GetValueOrDefault<
Form
>(s_propFormMdiParent);
1611
/// Gets an array of <see cref="
Form
"/> objects that represent all forms that are owned by this form.
1617
public
Form
[] OwnedForms => Properties.TryGetValue(s_propOwnedForms, out List<
Form
>? ownedForms) ? ([.. ownedForms]) : ([]);
1626
public
Form
? Owner
1631
Form
? ownerOld = OwnerInternal;
1657
internal
Form
? OwnerInternal => Properties.GetValueOrDefault<
Form
?>(s_propOwner);
2853
protected void ActivateMdiChild(
Form
? form)
2861
Form
? activeMdiChild = ActiveMdiChildInternal;
2893
public void AddOwnedForm(
Form
? ownedForm)
2906
if (!Properties.TryGetValue(s_propOwnedForms, out List<
Form
>? ownedForms))
3173
if (Properties.TryGetValue(s_propFormMdiParent, out
Form
? formMdiParent) && formMdiParent.MdiClient != value)
3360
Form
? form = Properties.GetValueOrDefault<
Form
>(s_propFormMdiParent);
3453
Form
? activeMdiChild = ActiveMdiChildInternal;
3456
Form
? mdiParent = activeMdiChild.MdiParentInternal;
3473
foreach (
Form
mdiChild in mdiParent.MdiChildren)
3558
if (Properties.TryGetValue(s_propOwner, out
Form
? owner))
3566
if (Properties.TryGetValue(s_propOwnedForms, out List<
Form
>? ownedForms))
4865
if (Properties.TryGetValue(s_propOwnedForms, out List<
Form
>? ownedForms))
4893
if (Properties.TryGetValue(s_propOwnedForms, out List<
Form
>? ownedForms))
5014
public void RemoveOwnedForm(
Form
? ownedForm)
5028
if (Properties.TryGetValue(s_propOwnedForms, out List<
Form
>? ownedForms))
5159
Form
? form = ParentForm;
5500
Form
? oldOwner = OwnerInternal;
5501
if (owner is
Form
ownerForm && owner != oldOwner)
5712
Form
? oldOwner = OwnerInternal;
5748
if (owner is
Form
form && owner != oldOwner)
6080
if (containerControl is
Form
)
6108
if (Properties.TryGetValue(s_propOwner, out
Form
? owner))
6209
Form
? activeMdiChild = ActiveMdiChildInternal;
6295
Form
? activeMdiForm = ActiveMdiChildInternal;
6696
foreach (
Form
mdiChild in MdiChildren)
6721
if (Properties.TryGetValue(s_propOwnedForms, out List<
Form
>? ownedForms))
6776
foreach (
Form
mdiChild in MdiChildren)
6790
if (Properties.TryGetValue(s_propOwnedForms, out List<
Form
>? ownedForms))
6927
if (Properties.TryGetValue(s_propFormMdiParent, out
Form
? formMdiParent))
System\Windows\Forms\FormClosedEventArgs.cs (2)
7
/// Provides data for <see cref="
Form
.OnFormClosing"/> and <see cref="
Form
.OnClosing"/> events.
System\Windows\Forms\FormClosingEventArgs.cs (2)
9
/// Provides data for <see cref="
Form
.OnFormClosing"/> and <see cref="
Form
.OnClosing"/> events.
System\Windows\Forms\FormCollection.cs (8)
25
public virtual
Form
? this[string? name]
33
foreach (
Form
form in InnerList)
50
public virtual
Form
? this[int index]
54
Form
? f = null;
58
f = (
Form
?)InnerList[index];
68
internal void Add(
Form
form)
80
internal bool Contains(
Form
form)
94
internal void Remove(
Form
form)
System\Windows\Forms\FormCornerPreference.cs (2)
10
/// Specifies the corner preference for a <see cref="
Form
"/> which can be
11
/// set using the <see cref="
Form
.FormCornerPreference"/> property.
System\Windows\Forms\Input\InputLanguageChangedEventArgs.cs (1)
9
/// Provides data for the <see cref="
Form
.InputLanguageChanged"/> event.
System\Windows\Forms\Input\InputLanguageChangedEventHandler.cs (1)
7
/// Represents a method that will handle the <see cref="
Form
.InputLanguageChanged"/> event.
System\Windows\Forms\Input\InputLanguageChangingEventArgs.cs (1)
10
/// Provides data for the <see cref="
Form
.InputLanguageChanging"/> event.
System\Windows\Forms\Input\InputLanguageChangingEventHandler.cs (1)
7
/// Represents a method that will handle the <see cref="
Form
.InputLanguageChanging"/> event.
System\Windows\Forms\Internal\WinFormsMetadataUpdateHandler.cs (1)
18
foreach (
Form
openForm in Application.OpenForms)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
363
public
Form
? ParentForm
372
if (this is
Form
)
494
Form
? f = FindForm();
555
Form
? form = FindForm();
System\Windows\Forms\MDI\MDIClient.ControlCollection.cs (2)
44
if (value is not
Form
form || !form.IsMdiChild)
63
if (value is
Form
form)
System\Windows\Forms\MDI\MDIClient.cs (7)
16
/// the <see cref="
Form
.IsMdiContainer"/> property to <see langword="true"/>.
24
private readonly List<
Form
> _children = [];
123
public
Form
[] MdiChildren
221
|| ParentInternal is
Form
{ MdiChildrenMinimizedAnchorBottom: false }
245
if (Controls[i] is
Form
child && child.CanRecreateHandle() && child.WindowState == FormWindowState.Minimized)
340
Form
? childForm = null;
341
if (ParentInternal is
Form
parentInternalAsForm)
System\Windows\Forms\MDI\MDIControlStrip.cs (2)
81
Icon icon = !hIcon.IsNull ? Icon.FromHandle(hIcon) :
Form
.DefaultIcon;
86
private bool GetTargetWindowIconVisibility() => _target is not
Form
formTarget || formTarget.ShowIcon;
System\Windows\Forms\MDI\MDIWindowDialog.cs (4)
12
private
Form
? _active;
29
public
Form
? ActiveChildForm
41
public void SetItems(
Form
? active,
Form
[] all)
System\Windows\Forms\MDI\MDIWindowDialog.ListItem.cs (2)
10
public
Form
Form { get; }
12
public ListItem(
Form
f)
System\Windows\Forms\MDI\MdiWindowListStrip.cs (6)
11
private
Form
? _mdiParent;
67
public void PopulateItems(
Form
mdiParent, ToolStripMenuItem mdiMergeItem, bool includeSeparator)
78
Form
[] forms = mdiParent.MdiChildren;
91
Form
? activeMdiChild = mdiParent.ActiveMdiChild;
161
Form
[]? forms = _mdiParent?.MdiChildren;
185
Form
? boundForm = windowListItem.MdiForm;
System\Windows\Forms\Rendering\DpiChangedEventHandler.cs (1)
7
/// Represents a method that will handle the <see cref="
Form
.DpiChanged"/> event.
System\Windows\Forms\SizeGripStyle.cs (1)
7
/// Specifies the style of the sizing grip on a <see cref="
Form
"/>.
System\Windows\Forms\ToolTip\ToolTip.cs (4)
906
if (_topLevelControl is not
Form
topForm || (topForm is not null && !topForm.Modal))
940
if (TopLevelControl is
Form
baseFrom)
1762
Form
? baseFrom = tool.FindForm();
1865
Form
? baseFrom = tool.FindForm();
System.Windows.Forms.Design (32)
System\ComponentModel\Design\DesignerActionPanel.cs (4)
433
Debug.Assert(TopLevelControl is
Form
, "DesignerActionPanel must be hosted on a Form.");
434
Form
form = (
Form
)TopLevelControl;
450
if (TopLevelControl is
Form
form)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
414
DialogResult IWindowsFormsEditorService.ShowDialog(
Form
dialog)
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
169
DialogResult IWindowsFormsEditorService.ShowDialog(
Form
dialog)
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
795
private DialogResult ShowDialog(
Form
dialog)
System\Windows\Forms\Design\DesignerFrame.cs (1)
101
if (_designer is
Form
form)
System\Windows\Forms\Design\DocumentDesigner.cs (3)
541
else if (autoSize && (mode == AutoSizeMode.GrowAndShrink) && !(Control is
Form
))
882
|| (cd.Control is
Form
form && form.TopLevel);
929
&& !(ce.Component is
Form
form && form.TopLevel);
System\Windows\Forms\Design\EditorServiceContext.cs (1)
123
DialogResult IWindowsFormsEditorService.ShowDialog(
Form
dialog)
System\Windows\Forms\Design\FormDocumentDesigner.cs (15)
35
((
Form
)Component).AcceptButton = value;
49
((
Form
)Component).CancelButton = value;
65
SizeF real =
Form
.GetAutoScaleSize(((
Form
)Component).Font);
89
return !_initializing && ((
Form
)Component).AutoScale && ShadowProperties.Contains(nameof(AutoScaleBaseSize));
107
if (Component is
Form
form)
131
((
Form
)Component).ClientSize = value;
140
get => ((
Form
)Control).IsMdiContainer;
148
((
Form
)Control).IsMdiContainer = value;
262
private static void ApplyAutoScaling(SizeF baseVar,
Form
form)
268
SizeF newVarF =
Form
.GetAutoScaleSize(form.Font);
333
Debug.Assert(component is
Form
, "FormDocumentDesigner expects its component to be a form.");
343
Form
form = (
Form
)Control;
423
if (Control is
Form
form)
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
107
if (component is Control { Parent: null } childControl and not
Form
{ TopLevel: true }) // Don't add top-level forms
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
456
&& host.GetDesigner(newChild) as ControlDesigner is not null && !(newChild is
Form
form && form.TopLevel))
2399
if (c is not
Form
form || !form.TopLevel)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1505
Form
parentForm = _host.RootComponent as
Form
;
System.Windows.Forms.Design.Tests (44)
BinaryEditorTests.cs (2)
20
editorService.Setup(e => e.ShowDialog(It.IsAny<
Form
>()))
21
.Callback<
Form
>(f => { f.Show(); f.Close(); })
System\ComponentModel\Design\CollectionEditorTests.cs (21)
101
Form
form = editor.CreateCollectionForm();
135
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
178
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
226
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
276
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
384
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
421
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
498
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
522
mockEditorService.Verify(s => s.ShowDialog(It.IsAny<
Form
>()), Times.Once());
531
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
563
mockEditorService.Verify(s => s.ShowDialog(It.IsAny<
Form
>()), Times.Once());
571
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
609
mockEditorService.Verify(s => s.ShowDialog(It.IsAny<
Form
>()), Times.Once());
618
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
656
mockEditorService.Verify(s => s.ShowDialog(It.IsAny<
Form
>()), Times.Once());
665
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
699
mockEditorService.Verify(s => s.ShowDialog(It.IsAny<
Form
>()), Times.Once());
785
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
888
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
931
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
983
public new
Form
CreateCollectionForm() => base.CreateCollectionForm();
System\ComponentModel\Design\CollectionFormTests.cs (12)
112
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
168
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
227
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
286
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
345
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
393
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
505
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
549
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
598
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
649
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
720
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
764
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (1)
613
using
Form
form = new();
System\Windows\Forms\Design\EditorServiceContextTests.cs (2)
21
private readonly Mock<
Form
> _mockDialog;
178
mockEditorService.Setup(es => es.ShowDialog(It.IsAny<
Form
>())).Returns(DialogResult.Cancel);
System\Windows\Forms\Design\InheritanceUITests.cs (1)
16
private readonly
Form
_form;
System\Windows\Forms\Design\LinkAreaEditorTests.cs (3)
27
editorService.Setup(es => es.ShowDialog(It.IsAny<
Form
>())).Returns(DialogResult.OK);
40
editorService.Setup(es => es.ShowDialog(It.IsAny<
Form
>())).Callback<
Form
>(form =>
System\Windows\Forms\Design\MaskedTextBoxTextEditorTests.cs (1)
22
.Setup(s => s.ShowDialog(It.IsAny<
Form
>()))
TreeNodeCollectionEditorTests.cs (1)
32
Form
colletionForm;
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
381
public static void BringToForeground(this
Form
form)
System.Windows.Forms.Tests (275)
NumericUpDownTests.cs (3)
30
using
Form
form = new();
73
using
Form
form = new();
109
using
Form
form = new();
System\Resources\ResXSerializationBinderTests.cs (7)
38
binder.BindToType(typeof(
Form
).Assembly.FullName!, typeof(
Form
).FullName!).Should().Be(typeof(
Form
));
86
TypeName parsed = TypeName.Parse($"{typeof(
Form
).FullName}, {typeof(
Form
).Assembly.FullName}");
88
string formNoVersionFullyQualifiedName = $"{typeof(
Form
).FullName}, {new AssemblyNameInfo(
97
return typeof(
Form
);
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (5)
545
using
Form
form = new();
573
using
Form
form = new();
596
using
Form
form = new();
2619
using
Form
form = new();
2651
using
Form
form = new();
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (2)
1694
using
Form
form = new();
1750
or
Form
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
550
using
Form
form = new();
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (1)
352
using
Form
form = new();
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (1)
13
private readonly
Form
_form;
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (13)
9
using static System.Windows.Forms.
Form
;
18
using
Form
form = new();
28
using
Form
form = new();
42
using
Form
form = new();
60
using
Form
form = new();
94
using
Form
form = new();
107
using
Form
form = new();
122
using
Form
form = new FocusEventsCounterForm();
148
using
Form
form = new FocusEventsCounterForm();
174
using
Form
form = new();
193
using
Form
form = new();
194
using
Form
embeddedForm = new() { TopLevel = false };
216
public FocusEventsCounterFormAccessibleObject(
Form
owner) : base(owner)
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
18
using
Form
form = new()
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (2)
135
using
Form
form = new();
344
using
Form
form = new();
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
277
using
Form
form = new();
320
using
Form
form = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (1)
1618
imageCollection.Images.Add(
Form
.DefaultIcon);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (3)
146
imageList.Images.Add(
Form
.DefaultIcon);
186
using
Form
form = new();
216
using
Form
form = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemImageAccessibleObjectTests.cs (2)
17
imageCollection.Images.Add(
Form
.DefaultIcon);
42
imageCollection.Images.Add(
Form
.DefaultIcon);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemWithImageAccessibleObjectTests.cs (3)
33
imageCollection.Images.Add(
Form
.DefaultIcon);
78
imageCollection.Images.Add(
Form
.DefaultIcon);
115
imageCollection.Images.Add(
Form
.DefaultIcon);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
1000
imageCollection.Images.Add(
Form
.DefaultIcon);
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
261
using
Form
form = new();
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
528
using
Form
form = new();
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (1)
57
foreach (
Form
form in Application.OpenForms)
System\Windows\Forms\Application.ParkingWindowTests.cs (3)
20
Form
form = InitFormWithControlToGarbageCollect();
39
private static
Form
InitFormWithControlToGarbageCollect()
41
Form
form = new();
System\Windows\Forms\ApplicationContextTests.cs (8)
27
public void Ctor_Form(
Form
mainForm)
37
public void MainForm_Set_GetReturnsExpected(
Form
value)
52
public void MainForm_SetWithNonNullOldValue_GetReturnsExpected(
Form
value)
173
using
Form
mainForm = new();
187
using
Form
mainForm = new();
250
using
Form
mainForm = new();
264
using
Form
mainForm = new();
405
public SubApplicationContext(
Form
mainForm) : base(mainForm)
System\Windows\Forms\ApplicationTests.cs (11)
391
using
Form
mainForm = new Form();
422
void AddMDI(
Form
mdiParent)
446
var
child = new Form
456
formClosingProcessed[(sender as
Form
).MdiParent]++;
464
formClosedProcessed[(sender as
Form
).MdiParent]++;
478
/// Count of forms that we will remove during last form <see cref="
Form
.OnFormClosing(FormClosingEventArgs)"/>.
481
/// Count of forms that we will add during last form <see cref="
Form
.OnFormClosing(FormClosingEventArgs)"/>.
529
using
Form
mainForm = new Form();
532
Form
lastChild = null;
561
Form
other = new Form() { Text = "Child" };
627
Form
add = new Form() { Text = "Add" };
System\Windows\Forms\AxHost.VisualBasic6Tests.cs (1)
20
using
Form
form = new();
System\Windows\Forms\AxSystemMonitorTests.cs (1)
13
private readonly
Form
_form;
System\Windows\Forms\AxWebBrowserTests.cs (1)
14
private readonly
Form
_form;
System\Windows\Forms\ButtonRenderingTests.cs (1)
216
using
Form
form = new();
System\Windows\Forms\ButtonTests.cs (4)
1936
using
Form
form = new();
2018
using
Form
form = new();
3120
using
Form
form = new();
3198
using
Form
form = new();
System\Windows\Forms\CheckBoxRendererTests.cs (4)
20
using
Form
form = new();
56
using
Form
form = new();
93
using
Form
form = new();
129
using
Form
form = new();
System\Windows\Forms\CheckBoxTests.cs (2)
817
using
Form
form = new();
847
using
Form
form = new();
System\Windows\Forms\ControlBindingsCollectionTests.cs (1)
92
using
Form
control = new();
System\Windows\Forms\ControlTests.cs (4)
927
using
Form
form = new() { RightToLeft = rightToLeft, };
984
using
Form
form = new() { RightToLeft = rightToLeft };
1039
using
Form
form = new();
1099
using
Form
form = new();
System\Windows\Forms\ControlTests.Internals.cs (1)
417
using
Form
form = new();
System\Windows\Forms\ControlTests.Methods.cs (1)
1936
Form
form = new();
System\Windows\Forms\DataGridViewCellTests.cs (7)
202
using
Form
form = new();
845
using
Form
form = new();
881
using
Form
form = new();
4049
using
Form
form = new();
4092
using
Form
form = new();
4356
using
Form
form = new();
5148
using
Form
form = new();
System\Windows\Forms\DataGridViewHeaderCellTests.cs (2)
2415
using
Form
form = new();
3682
using
Form
form = new();
System\Windows\Forms\DataGridViewRowTests.cs (8)
110
using
Form
form = new();
328
using
Form
form = new();
355
using
Form
form = new();
943
using
Form
form = new();
1873
using
Form
form = new();
2342
using
Form
form = new();
4334
using
Form
form = new();
4459
using
Form
form = new();
System\Windows\Forms\DataGridViewTests.cs (1)
2323
using
Form
form = new Form
System\Windows\Forms\DataGridViewTests.Rendering.cs (2)
18
using
Form
form = new();
107
using
Form
form = new Form
System\Windows\Forms\ErrorProviderTests.cs (1)
1317
using
Form
form = new();
System\Windows\Forms\Form.ControlCollectionTests.cs (3)
13
using
Form
owner = new();
14
Form
.ControlCollection collection = new(owner);
24
Assert.Throws<ArgumentNullException>("owner", () => new
Form
.ControlCollection(null));
System\Windows\Forms\FormTests.cs (101)
196
using
Form
form = new();
213
using
Form
form = new();
226
using
Form
form = new()
254
using
Form
form = new();
255
using
Form
child = new();
266
using
Form
form = new();
267
using
Form
child = new()
282
using
Form
form = new();
283
using
Form
child = new()
297
using
Form
form = new();
298
using
Form
child = new()
313
using
Form
control = new()
347
using
Form
control = new()
377
using
Form
control = new()
407
using
Form
control = new();
456
using
Form
control = new()
504
using
Form
control = new()
552
using
Form
form = new()
569
using
Form
form = new()
584
using
Form
form = new()
599
using
Form
form = new()
626
using
Form
control = new()
660
using
Form
control = new()
683
using
Form
control = new()
715
using
Form
control = new();
751
using
Form
control = new()
797
using
Form
control = new();
842
using
Form
control = new();
892
using
Form
control = new()
936
using
Form
control = new()
957
using
Form
control = new()
985
using
Form
form = new();
1014
using
Form
form = new();
1043
using
Form
mainForm = new();
1046
using
Form
formAsControl = new()
1068
using
Form
form = new();
1077
using
Form
form = new();
1091
using
Form
form = new();
1114
using
Form
oldParent = new()
1118
using
Form
control = new()
1140
using
Form
control = new()
1160
using
Form
control = new()
1194
using
Form
control = new()
1232
using
Form
control = new()
1243
using
Form
control = new();
1252
using
Form
oldParent = new()
1256
using
Form
control = new()
1260
using
Form
parent = new();
1269
using
Form
parent = new();
1276
using
Form
control = new();
1278
control.Icon =
Form
.DefaultIcon;
1318
using
Form
control = new()
1350
using
Form
control = new()
1384
using
Form
control = new()
1417
using
Form
control = new()
1439
using
Form
control = new()
1461
using
Form
control = new();
1500
using
Form
control = new();
1532
using
Form
control = new()
1574
using
Form
control = new()
1609
using
Form
control = new();
1643
using
Form
control = new();
1676
using
Form
control = new()
1712
using
Form
control = new()
1747
using
Form
control = new();
1781
using
Form
control = new();
1826
using
Form
control = new()
1864
using
Form
form = new()
1902
using
Form
control = new()
1941
using
Form
parent = new()
1946
using
Form
control = new()
1975
using
Form
control = new()
2023
using
Form
parent = new()
2028
using
Form
control = new()
2075
using
Form
parent = new()
2080
using
Form
control = new()
2127
using
Form
parent = new()
2131
using
Form
control = new()
2169
using
Form
control = new()
2224
using
Form
parent = new()
2229
using
Form
control = new()
2277
using
Form
parent = new()
2281
using
Form
control = new()
2330
using
Form
control = new()
2388
using
Form
control = new()
2614
yield return new Action<
Form
, Control>[]
2616
(
Form
form, Control control) => form.Show(owner: control)
2618
yield return new Action<
Form
, Control>[]
2620
(
Form
form, Control control) => form.ShowDialog(owner: control)
2624
yield return new Action<
Form
, Control>[]
2626
(
Form
form, Control control) => form.Show(owner: control.FindForm())
2628
yield return new Action<
Form
, Control>[]
2630
(
Form
form, Control control) => form.ShowDialog(owner: control.FindForm())
2636
public void Form_Show_SetsOwnerToTopLevelForm_WhenShownWithOwner(Action<
Form
, Control> showAction)
2640
using
Form
parent = new();
2645
using
Form
child = new();
2646
Form
owner = null;
2649
owner = ((
Form
)sender).Owner;
2671
using
Form
parent = new() { IsMdiContainer = true };
2672
using
Form
mdiChild = new() { MdiParent = parent };
2710
public ParentingForm(
Form
targetForm)
System\Windows\Forms\LabelTests.cs (1)
290
using
Form
form = new();
System\Windows\Forms\ListViewTests.cs (2)
5052
imagecollection.Images.Add(
Form
.DefaultIcon);
5053
imagecollection.Images.Add(
Form
.DefaultIcon);
System\Windows\Forms\MdiControlStripTests.cs (11)
19
using
Form
form = new();
159
using
Form
form = new();
177
using
Form
form = new();
204
using
Form
mdiParent = new()
211
using
Form
mdiChild = new()
250
using
Form
mdiParent = new()
257
using
Form
mdiChild = new()
295
using
Form
mdiParent = new() { IsMdiContainer = true };
296
using
Form
mdiChild = new()
317
using
Form
mdiParent = new() { IsMdiContainer = true, Text = "Parent" };
318
using
Form
mdiChild = new() { MdiParent = mdiParent, Text = "Child" };
System\Windows\Forms\MixedDpiHostingTests.cs (1)
26
using
Form
form = new();
System\Windows\Forms\NativeWindowTests.cs (1)
31
using
Form
control = new();
System\Windows\Forms\PropertyGridInternal\GridToolTipTests.cs (1)
82
using
Form
form = new();
System\Windows\Forms\RadioButtonRendererTests.cs (5)
18
using
Form
form = new Form();
49
using
Form
form = new Form();
86
using
Form
form = new Form();
115
using
Form
form = new Form();
201
using
Form
parent = new();
System\Windows\Forms\ScrollBarTests.cs (2)
3109
Form
form = new();
3128
Form
form = new();
System\Windows\Forms\StatusStripTests.Rendering.cs (1)
16
using
Form
form = new();
System\Windows\Forms\TabControlTests.cs (1)
5711
using
Form
form = new();
System\Windows\Forms\TextBoxRendererTests.cs (3)
26
using
Form
form = new();
55
using
Form
form = new();
90
using
Form
form = new();
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (6)
16
using
Form
form = new();
42
using
Form
form = new();
68
using
Form
form = new();
94
using
Form
form = new();
120
using
Form
form = new();
147
using
Form
form = new();
System\Windows\Forms\ToolStripContainer.ToolStripContainerTypedControlCollectionTests.cs (2)
48
using
Form
form = new();
123
using
Form
form = new();
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
112
using
Form
form = new();
256
Form
? mdiForm1 = null;
System\Windows\Forms\ToolStripPanelRow.ToolStripPanelRowControlCollectionTests.cs (1)
16
using
Form
form = new();
System\Windows\Forms\ToolStripSettingsManagerTests.cs (1)
13
using
Form
mainForm = new();
System\Windows\Forms\ToolStripTests.cs (2)
1628
using
Form
form = new();
1648
using
Form
form = new();
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
16
using
Form
form = new();
System\Windows\Forms\ToolTipTests.cs (2)
838
using
Form
form = new();
879
using
Form
form = new();
System\Windows\Forms\UnsupportedTypesTests.cs (7)
118
using
Form
form = new();
127
using
Form
form = new();
142
using
Form
form = new();
149
using
Form
form = new();
157
using
Form
form = new();
169
using
Form
form = new();
177
using
Form
form = new();
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (1)
505
using
Form
form = new();
System\Windows\Forms\WebBrowserTests.cs (1)
4760
using
Form
form = new();
TextBoxTests.Rendering.cs (1)
18
using
Form
form = new();
System.Windows.Forms.UI.IntegrationTests (76)
AnchorLayoutTests.cs (11)
53
(
Form
form, Button button) = GetFormWithAnchoredButton(AnchorAllDirection);
77
(
Form
form, Button button) = GetFormWithAnchoredButton(AnchorAllDirection);
98
(
Form
form, Button button) = GetFormWithAnchoredButton(AnchorAllDirection);
123
(
Form
form, Button button) = GetFormWithAnchoredButton(AnchorAllDirection);
142
(
Form
form, Button button) = GetFormWithAnchoredButton(AnchorAllDirection);
171
(
Form
form, Button button) = GetFormWithAnchoredButton(AnchorAllDirection);
208
(
Form
form, Button button) = GetFormWithAnchoredButton(AnchorAllDirection);
240
(
Form
form, Button button) = GetFormWithAnchoredButton(anchors);
270
private static (
Form
, Button) GetFormWithAnchoredButton(AnchorStyles buttonAnchors)
272
Form
form = new()
291
private static void Dispose(
Form
form, Button button)
ApplicationTests.cs (2)
21
using
Form
child = new() { RightToLeft = RightToLeft.No };
39
private async Task RunTestAsync(Func<
Form
, Task> runTest)
ButtonTests.cs (1)
394
private async Task RunTestAsync(Func<
Form
, Button, Task> runTest)
DataGridViewTests.cs (3)
47
using
Form
form1 = new();
48
using
Form
form2 = new();
125
private async Task RunTestAsync(Func<
Form
, DataGridView, Task> runTest)
DesignBehaviorsTests.cs (4)
69
if (e.Component is
Form
form)
120
async Task InitiateDrangDropAsync(
Form
form, Point startCoordinates, Control rootView)
309
LoaderHost.CreateComponent(typeof(
Form
));
311
LoaderHost.EndLoad(nameof(
Form
), true, errors);
Dpi\FormDpiTests.cs (7)
29
using
Form
form = new();
68
using
Form
form = new();
102
using
Form
form = new();
136
using
Form
form = new();
172
using
Form
form = new();
204
using
Form
form = new();
232
using
Form
form = new();
Dpi\SplitContainerTests.cs (1)
44
using
Form
form = new();
Dpi\ToolStripItemTests.Dpi.cs (1)
33
using
Form
form = new();
DragDropTests.cs (1)
910
Form
form = lb.FindForm()!;
FormTests.cs (2)
141
private async Task RunEmptyFormTestAsync(Func<
Form
, Task> testDriverAsync)
146
Form
form = new()
ImageListTests.cs (3)
91
using
Form
form = CreateForm();
96
private
Form
CreateForm()
108
Form
form = new()
Infra\ControlTestBase.cs (12)
180
protected async Task MoveMouseAsync(
Form
window, Point point, bool assertCorrectLocation = true)
215
protected async Task RunSingleControlTestAsync<T>(Func<
Form
, T, Task> testDriverAsync)
221
Form
form = new()
234
protected async Task RunSingleControlTestAsync<T>(Func<
Form
, T, Task> testDriverAsync, Func<T> createControl, Func<
Form
>? createForm = null)
240
Form
form;
262
protected async Task RunControlPairTestAsync<T1, T2>(Func<
Form
, (T1 control1, T2 control2), Task> testDriverAsync)
269
Form
form = new()
291
protected async Task RunFormAsync<T>(Func<(
Form
dialog, T control)> createDialog, Func<
Form
, T, Task> testDriverAsync)
295
Form
? dialog = null;
338
where TForm :
Form
Infra\ScreenRecordService.cs (2)
29
private
Form
? _form;
562
public void RegisterEvents(
Form
form)
Infra\SendInput.cs (3)
19
internal async Task SendAsync(
Form
window, params object[] keys)
70
internal async Task SendAsync(
Form
window, Action<InputSimulator> actions)
80
private static void SetForegroundWindow(
Form
window)
ListBoxAccesibleObjectTests.cs (3)
14
using
Form
form = new();
35
using
Form
form = new();
49
using
Form
form = new();
ListBoxItemAccessibleObjestTests.cs (3)
14
using
Form
form = new();
37
using
Form
formDoubleClick = new();
52
using
Form
form = new();
ListControlUnboundActionListTests.cs (1)
26
foreach (
Form
form in Application.OpenForms)
ListViewTests.cs (1)
632
private async Task RunTestAsync(Func<
Form
, ListView, Task> runTest)
MDITests.cs (3)
20
using
Form
childForm = new()
42
using
Form
childForm = new()
60
private async Task RunTestAsync(Func<
Form
, Task> runTest)
MenuStripTests.cs (1)
14
using
Form
form = new();
MonthCalendarAccessibleObjectTests.cs (1)
37
private async Task RunTestAsync(Func<
Form
, MonthCalendar, Task> runTest)
MonthCalendarTests.cs (4)
180
private async Task ClickOnDateAsync(
Form
form, MonthCalendar calendar, DateTime date)
188
private async Task ClickOnDateTwiceAsync(
Form
form, MonthCalendar calendar, DateTime date)
199
private async Task RunClickTestAsync(Func<
Form
, MonthCalendar, Task> runTest)
223
private async Task RunTestAsync(Func<
Form
, MonthCalendar, Task> runTest)
PropertyGridTests.cs (1)
17
private readonly
Form
_form;
RichTextBoxTests.cs (1)
233
private async Task RunTestAsync(Func<
Form
, RichTextBox, Task> runTest)
TabControlTests.cs (2)
66
private async Task<bool> IsHoveredWithMouseAsync(
Form
form, TabControl tabControl, Point point, bool assertCorrectLocation = true)
76
private async Task RunTestAsync(Func<
Form
, TabControl, Task> runTest)
ToolStripTests.cs (2)
30
using
Form
form = new();
66
using
Form
form = new();
UnsupportedTypes (4)
CreateFrameworkTypes.cs (4)
63
public void CreateDataGrid(
Form
form)
108
public void CreateToolBar(
Form
form)
134
public void CreateStatusBar(
Form
form)
243
public void AddCustomDataTableStyle(
Form
form, DataGrid dataGrid = null, DataSet dataSet = null)
VisualBasicRuntimeTest (6)
Program.cs (6)
81
Form
mainForm = new();
131
var
dialog = (
Form
)Activator.CreateInstance(dialogType, nonPublic: true);
155
var
form = (
Form
)Activator.CreateInstance(formType, nonPublic: true);
177
internal WindowsApplication(
Form
mainForm, bool isSingleInstance)
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHost.cs (2)
312
SWF.
Form
form = value as SWF.
Form
;
WinFormsControlsTest (9)
Dialogs.cs (1)
48
if (propertyGrid1.SelectedObject is
Form
form)
FormOwnerTestForm.cs (3)
28
List<
Form
> childForms = [];
58
public
Form
CreateChildFormWithMemory()
63
Form
child = new();
FormShowInTaskbar.cs (1)
31
using
Form
form = new()
MdiChild.cs (1)
28
Form
frm = new()
MdiParent.cs (1)
22
Form
child = new()
RichTextBoxes.cs (2)
117
public static string ShowDialog(
Form
owner, string text, string caption)
119
Form
prompt = new()