Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load child forms of MDI on a separate thread

Status
Not open for further replies.

igor22

Programmer
Sep 18, 2003
50
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top