Open Modal Form After MDI Load
Posted on 2004-11-11
I'm using VB.NET.
I have an application with 2 forms.
frmMDI is the main MDI Container for the application and is the Start Up object for the application.
frmSales is a second form.
When the application starts, I want the frmMDI to open and then load and open the frmSales as a Modal
form. To do this, I have the following code in the Sub New() for frmMDI.
Public Sub New()
Dim frmS as New frmSales
The problem is that since I load the frmSales as modal in the Sub New() for frmMDI, frmSales loads first. Then when I close frmSales, frmMDI continues to load.
How can I have frmMDI load completely and then frmSales load as modal?
Thanks in advance.