problem in showing froms by using names in VB.Net
I have used this code for showing forms by using their names.it works correctly when you are working in one project,but when you have more than one project in you solution and you want to show a form from one of the other projects(although I have added that reference to my project) it does not work the code is as fallows:
Dim appName As String = Application.ProductName & "."
Dim mForm As String = "Form3"
Dim f As Form = DirectCast(Type.GetType(appName & mForm).InvokeMember(mForm, Reflection.BindingFlags.CreateInstance, Nothing, Nothing, Nothing), Form)
and the error is (object reference not set to an instance of object)