I need to pass collections to a form from a class. I created a public method in the form. I was going to write the following code
FormsCollection fc = Application.OpenForms;
foreach (var f in fc)
if (f.GetType() == typeof(MyForm)f;
I ether need to do that or I need to open a form from a class.
But it seems like I can't do that in a class. Any other ideas?