9 writes to MainForm
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
310
_appContext.
MainForm
= value
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.WinFormsAppContext.vb (1)
51
MainForm
= forms(0)
System.Windows.Forms (1)
System\Windows\Forms\ApplicationContext.cs (1)
38
MainForm
= mainForm;
System.Windows.Forms.Tests (6)
System\Windows\Forms\ApplicationContextTests.cs (6)
39
MainForm
= value
44
context.
MainForm
= value;
54
MainForm
= new Form()
57
context.
MainForm
= value;
61
context.
MainForm
= value;
97
MainForm
= newMainForm
29 references to MainForm
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (2)
288
If value IsNot Nothing AndAlso value Is _appContext.
MainForm
Then
301
Return _appContext?.
MainForm
Microsoft.VisualBasic.Forms.Tests (1)
System\Windows\Forms\WindowsFormsApplicationBaseTests.vb (1)
80
ApplicationContext.
MainForm
.Name.Should.Be(NameOf(splashScreenForm))
System.Windows.Forms (7)
System\Windows\Forms\Application.ModalApplicationContext.cs (4)
27
if (
MainForm
is not null &&
MainForm
.IsHandleCreated)
30
HWND parentHandle = (HWND)PInvokeCore.GetWindowLong(
MainForm
, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
43
parentControl ??= _parentWindowContext.ApplicationContext!.
MainForm
;
System\Windows\Forms\Application.ThreadContext.cs (3)
731
if (ApplicationContext.
MainForm
is not null)
733
ApplicationContext.
MainForm
.Visible = true;
740
CurrentForm = context.
MainForm
;
System.Windows.Forms.Tests (18)
System\Windows\Forms\ApplicationContextTests.cs (18)
13
Assert.Null(context.
MainForm
);
29
Assert.Same(mainForm, context.
MainForm
);
41
Assert.Equal(value, context.
MainForm
);
45
Assert.Equal(value, context.
MainForm
);
58
Assert.Equal(value, context.
MainForm
);
62
Assert.Equal(value, context.
MainForm
);
174
Assert.Null(context.
MainForm
);
178
Assert.Null(context.
MainForm
);
191
Assert.Null(context.
MainForm
);
195
Assert.Null(context.
MainForm
);
204
Assert.Null(context.
MainForm
);
207
Assert.Null(context.
MainForm
);
251
Assert.Null(context.
MainForm
);
255
Assert.Null(context.
MainForm
);
265
Assert.Same(mainForm, context.
MainForm
);
269
Assert.Same(mainForm, context.
MainForm
);
279
Assert.Null(context.
MainForm
);
282
Assert.Null(context.
MainForm
);
VisualBasicRuntimeTest (1)
Program.cs (1)
103
&& application.ApplicationContext.
MainForm
== mainForm;