public static void showform(type formtype) { object obj = activator.createinstance(formtype); form t = obj as form; if (t != null) { t.show(); } }