开发者

Invoke one form from another in Visual C++

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?


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:

  1. include "Form2.h" in Form1.h

  2. in Form1.h on click:

    Form2 ^r = gcnew Form2();
    r->Show(this); 
    
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜