Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Spanish- Estoy iniciando mi programa, una interfaz Gráfica en C++ (Visual Studio) y quiero programar un botón que me lleve al formulario anterior

Mi duda es cómo configuro el botón de regresar para que efectivamente regrese a la página anterior?

English- I am starting my program, a graphical interface in C++ (Visual Studio) and I want to program a button that takes me to the previous form

My question is how do I set the back button to go back to the previous page?

What I have tried:

At the moment I have only tried to try to link it with the previous page

private: System::Void btnAtras_Click(System::Object^ sender, System::EventArgs^ e) {
Proyect::MENINI^ inicio = gcnew Proyect::MENINI();
inicio->Show();
this->Hide();
}
Posted
Updated 8-May-22 8:54am
Comments
merano99 8-May-22 16:30pm    
The code snippet is .Net/CLI. Is help needed based on this, or should C++ be used?
A more detailed description of the desired functionality is probably required.
From the existing text I would assume that several form pages should be programmed, each with a forward and back button. For example, MFC AppWizard would generate something like this if you select property sheet with wizard mode.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900