I'm trying to write a windows Forms VB application which takes other
windows applications (i.e. .exe file) as input. It then loads the .exe
programmatically and looks for the Windows Forms in the .exe.

Dim al As Assembly
al = Assembly.LoadFrom("C:\Experiments\wintest2.exe")
Dim t()
As Type = al.GetTypes()

For Each t1 As Type In t
If t1.BaseType.Namespace = "System.Windows.Forms" Then
end if
Next

In this above loop I want to create the object of all the form Class
(in the if block) in the loaded .exe. When I try this with t1 it says
"It is a type " basically the project wouldn't build.

I'm able to do the same by just adding the reference of the .exe and
then just write. This gives form object. but my problem is that I have
to load the .exe programmtically and then find Windows Forms it and
create the object for them. Any help is appreciated

Dim aa As New wintest2.Form2

Vivek