i tried it but i did not work
there is something suspecting me
the
Code:
public partial class frmPersonelGiris : Form // the main form is frmPersonelGiris
{
public frmOgrenciGiris OgrenciGiris;
public frmPersonelGiris PersonelGiris;
private void button1_Click(object sender, EventArgs e)
{
if (OgrenciGiris == null)
{
PersonelGiris = new frmPersonelGiris();
PersonelGiris.Hide();
OgrenciGiris = new frmOgrenciGiris();
OgrenciGiris.MainForm = this;
OgrenciGiris.Show();
}
}
}
when i did not write
Code:
public frmPersonelGiris PersonelGiris;
in the top of the form it did not work
how can i do it?