Application.OpenForms (c#)


private static void RaporOnizlemeEkraniniKapat()
{
for (int i = 0; i <= Application.OpenForms.Count -1 ; i++)
{
if (Application.OpenForms[i].Name == "Form1")
{
Application.OpenForms[i].Close();
return ;
   }
}
}

Yorumlar