|
Type type = Type.GetType("The complete class name of the form (MyNameSpace.MyForm)");
// Create a form instance
Object obj = type.InvokeMember(null,
BindingFlags.Public | BindingFlags.NonPublic |
BindingFlags.Instance | BindingFlags.CreateInstance, null, null, null);
// display form
type.InvokeMember("Show",System.Reflection.BindingFlags.InvokeMethod,null,obj,null); |
|