9 writes to MainForm
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
333
_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
28 references to MainForm
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (2)
311
If value IsNot Nothing AndAlso value Is _appContext.
MainForm
Then
324
Return _appContext?.
MainForm
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)
732
if (ApplicationContext.
MainForm
is not null)
734
ApplicationContext.
MainForm
.Visible = true;
741
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;