Go from Form4 to Form2

I know how to go the previous window but how to go back 2 or more forms. FormX+2 to FormX

Form 2
1
2
3
4
5
6
7
8
9
10
Form2(System::Windows::Forms::Form ^ Form)
		{
			backForm = Form;
			InitializeComponent();
		}
private: System::Windows::Forms::Form ^ backForm;
private: System::Void Button_Click(System::Object^  sender, System::EventArgs^  e) {
			this->Hide();
			backForm->Show();
		 }


Form1
1
2
3
4
5
6
7
#include "Form2.h"

private: System::Void button_Click(System::Object^  sender, System::EventArgs^  e) {
			 Form2^ go_form = gcnew Form2(this);
			 go_form->Show();
			 this->Hide();
		 }
Topic archived. No new replies allowed.