Code:
private: System::Void OpenForm_Click(System::Object^ sender, System::EventArgs^ e)
{
ResultReport->Show();
}
Assuming that the ResultReport form has been properly designed and it has been declared in the appropriate class as Rreport (that is, ResultReport Rreport) and the namespace is myNamespace, give the following a try:
Code:
private: System::Void OpenForm_Click(System::Object^ sender, System::EventArgs^ e)
{
Rreport = new myNamespace.ReportResult();
Rreport->Show();
// ResultReport->Show();
}
[/QUOTE]