private void buttonReturn_Click(object sender, EventArgs e)
        {
            this.Hide();
            FormMainMenu formOther = new FormMainMenu();

            formOther.Show();
            formOther = null;
        }
Exemple #2
0
        private void buttonReturn_Click(object sender, EventArgs e)
        {//Returns to FormMainMenu
            //Hide the current form first
            this.Hide();

            //Display the other form from this form
            FormMainMenu formOther = new FormMainMenu(); //must create a new object instance of the another form first

            formOther.Show();                            //then show the form
        }