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