none
ayudenme corregir el codigo abrir un formulario dentro de un panel c++? RRS feed

  • Pregunta

  • private: System::Void AbrirFormInPanel(Object Formhijo)
    {
    if (this->pnlContenedor->Controls->Count>0)
    {
    this->pnlContenedor->Controls->RemoveAt(0);

    MyForm2^fh = gcnew MyForm2();//Form fh= Formhijo as Form;esto deberia ser asi en c#
    fh->TopLevel = false;
    fh->Dock = DockStyle::Fill;
    this->pnlContenedor->Controls->Add(fh);
    this->pnlContenedor->Tag = fh;
    fh->Show();
    }
    }
    sábado, 28 de julio de 2018 21:57