Arkadaşlar Form1 den Form2 ye yada Form2 den Form3 e geçebiliyorum. Aynı şekilde Form3 den Form2 ye Form2 den Form1 e geçebiliyorum.Ancak Form3 den Form1 e geçemiyorum. Yani bir form geri gelebilirken 2 form geri gidemiyorum. Bu konuda yardım eder misiniz.İstediğim şey Form 3 deki Anasayfa butonuna tıklandıktan sonra Form1 e geçmek. İşte Kodlar:
FORM1 İN KODLARI
#pragma once #include "stdAfx.h" #include "Form2.h"
namespace adasda {
using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing;
/// <summary> /// Summary for Form1 /// /// WARNING: If you change the name of this class, you will need to change the /// 'Resource File Name' property for the managed resource compiler tool /// associated with all .resx files this class depends on. Otherwise, /// the designers will not be able to interact properly with localized /// resources associated with this form. /// </summary> public ref class Form1 : public System::Windows::Forms::Form {
public: Form1(void) { InitializeComponent(); // //TODO: Add the constructor code here // }
protected: /// <summary> /// Clean up any resources being used. /// </summary> ~Form1() { if (components) { delete components; } } private: System::Windows::Forms::Button^ button1; protected:
#pragma once #include "stdAfx.h" #include "Form3.h" using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing;
namespace adasda {
/// <summary> /// Summary for Form2 /// /// WARNING: If you change the name of this class, you will need to change the /// 'Resource File Name' property for the managed resource compiler tool /// associated with all .resx files this class depends on. Otherwise, /// the designers will not be able to interact properly with localized /// resources associated with this form. /// </summary> public ref class Form2 : public System::Windows::Forms::Form { private: System::Windows::Forms::Form^ Form1; public: Form2(System::Windows::Forms::Form^ d) { Form1 = d; InitializeComponent(); // //TODO: Add the constructor code here // }
protected: /// <summary> /// Clean up any resources being used. /// </summary> ~Form2() { if (components) { delete components; } } private: System::Windows::Forms::Button^ button1; private: System::Windows::Forms::Button^ button2; private: System::Windows::Forms::Button^ button3; protected:
using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing;
namespace adasda {
/// <summary> /// Summary for Form3 /// /// WARNING: If you change the name of this class, you will need to change the /// 'Resource File Name' property for the managed resource compiler tool /// associated with all .resx files this class depends on. Otherwise, /// the designers will not be able to interact properly with localized /// resources associated with this form. /// </summary> public ref class Form3 : public System::Windows::Forms::Form { private: System::Windows::Forms::Form^ Form2; public: Form3(System::Windows::Forms::Form^ d) { Form2=d; InitializeComponent(); // //TODO: Add the constructor code here // }
protected: /// <summary> /// Clean up any resources being used. /// </summary> ~Form3() { if (components) { delete components; } } private: System::Windows::Forms::Button^ button1; public: System::Windows::Forms::Button^ button2; private:
FORM1 İN KODLARI
FORM2 NİN KODLARI
FORM3 ÜN KODLARI