Reputation: 2079
it seems simple question but so far I haven't found the answer. I have 2 forms in my Visual C++ project, and want invoke one from another on button click. How do i do this?
Upvotes: 0
Views: 623
Reputation: 2079
Well, I just novice and even this simple question could take my 30 mins to find solution. If you also novice and wonder how to do this, here it is:
include "Form2.h" in Form1.h
in Form1.h on click:
Form2 ^r = gcnew Form2();
r->Show(this);
Upvotes: 1