Hi
How to convert System.Type to Form ?
i wrote this code :
FormsCollection forms = new FormsCollection();
foreach(Type t in types)
{
if (t.BaseType == typeof(Form))
{
Form frm = (Form)t;
forms.Add(frm);
}
}
but, the following error message display :
Cannot convert type 'System.Type' to 'System.Windows.Forms.Form'
How to solve this problem ?
Thanks
this is my Signature