Hellow, i have proj1
i add 2 forms to Form1.cs(Designe) they are FormA and FormB
in FormA i add 2 buttons,they are
CallFormB_button and ExitFromFormA_Button
i added click to CallFormB_button so i can call FormB
it is CallFormB_buttonClick
in FormA, i added those codes
protected override void OnClosing(CancelEventArgs e)
{
this.Close();
}
private void ExitFromFormA_ButonClick(object sender, EventArgs e)
{
this.Close();
}
in FormB i add 1 button it is
ExitFromFormB_Button
in FormB, i added those codes
protected override void OnClosing(CancelEventArgs e)
{
this.Close();
}
private void ExitFromFormB_ButonClick(object sender, EventArgs e)
{
this.Close();
}
//---
i could find my way back from FormB and reach FormA
but i could not exit from FormA ! i want to reach Form1
the program hange and need Task manger to stop it
i tried base.Close() but no diffrence