Hi srfpala,
First, create C++ winform project by the an earwig's answer.
Then, add a new form(MyForm1).
Right click the project name->Add->New Item->UI->Windows Form->Add.
Finally, use the following code to call MyForm1.
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
MyForm1^ f1 = gcnew MyForm1();
f1->ShowDialog();
}
Test result:
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.