Hi,
I have an MDI form where I am loading different applications as children of the MDI form.
The applications are not a part of the MDI project, so they are loaded dynamically, providing the path to the application's exe file and a form name.
Dim loAssembly As System.Reflection.Assembly = System.Reflection.Assembly.LoadFrom(lcApplicationPath & lcApplicationName)
Dim loType As Type
For Each loType In loAssembly.GetTypes()
If loType.Name = lcFormName Then
Dim loForm As Form = CType(Activator.CreateInstance(loType), Form)
loForm.MdiParent = Me
loForm.Show()
End If
Next
It takes time to load some of the applications and I was wondering if there is a way to load the applications in the background (in a separate thread)?
Thanks,
Igor
I have an MDI form where I am loading different applications as children of the MDI form.
The applications are not a part of the MDI project, so they are loaded dynamically, providing the path to the application's exe file and a form name.
Dim loAssembly As System.Reflection.Assembly = System.Reflection.Assembly.LoadFrom(lcApplicationPath & lcApplicationName)
Dim loType As Type
For Each loType In loAssembly.GetTypes()
If loType.Name = lcFormName Then
Dim loForm As Form = CType(Activator.CreateInstance(loType), Form)
loForm.MdiParent = Me
loForm.Show()
End If
Next
It takes time to load some of the applications and I was wondering if there is a way to load the applications in the background (in a separate thread)?
Thanks,
Igor