I hope you can help me.
What I want to do is detect a form that is inside my project, once the form has been detected, close that form, to detect the form I want to close I use the following code
foreach (Form frm in Application.OpenForms)
{
if (frm.GetType() == typeof(form_tabla))
{
MessageBox.Show("from abierto");
break;
}
}
now once you see what I want to close it, I hope you can help me, thanks