Windows Forms
-
If I want to appeal a windows form, from another form when I push a button, what I should do? I tried this code and I have the following error: Error error C2061: syntax error : identifier 'Results' private: System::Void ResultsButton_Click(System::Object^ sender, System::EventArgs^ e) { Application::Run(gcnew Results()); }
-
If I want to appeal a windows form, from another form when I push a button, what I should do? I tried this code and I have the following error: Error error C2061: syntax error : identifier 'Results' private: System::Void ResultsButton_Click(System::Object^ sender, System::EventArgs^ e) { Application::Run(gcnew Results()); }
private: System::Void ResultsButton_Click(System::Object^ sender, System::EventArgs^ e) { Results^ resultForm = gcnew Results(); resultForm->ShowDialog(); }
Also, you should include the form header at the top of the form: #include "Results.h"