#include "For_Student_Detials private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { For_Student_Detials^ MyStudentDet= For_Student_Detials::GetForm(true,this); MyStudentDet->MdiParent=this; MyStudentDet->FormBorderStyle=System::Windows::Forms::FormBorderStyle::None; MyStudentDet->Dock=DockStyle::Fill; MyStudentDet->Show(); }
public: static For_Student_Details^ For_Student_Details::_instance = nullptr; public: static For_Student_Details^ For_Student_Details::GetForm(bool^ IsMDIChild, CFIS_Main^ MyInstFrm) { if (_instance == nullptr) _instance = gcnew For_Student_Details(); if (_instance->IsDisposed) _instance = gcnew For_Student_Details(); if (IsMDIChild) _instance->MdiParent = MyInstFrm; return _instance; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)