I need a method that returns a new instance of a form by the name of the form. Here is what I have so far:
public Form GetFormByName(string frmname)
Assembly asm = typeof(EnterHereTypeInTheSameAssembly).Assembly; Type type = asm.GetType(name); Form form = (Form)Activator.CreateInstance(type);