Adding Existing Form to C++/CLI WinForms Project

我的未来我决定 提交于 2019-12-05 23:31:13

问题


I have two C++/CLI projects A and B in separate solutions. I use A for experiments/testing and move the tested code to B once I am finished testing. However, I find that on adding a windows forms class (header, cpp and resx) to project B, I am no longer able to use the visual forms designer of the IDE. How do I enable that?


回答1:


Got it!

  1. Open the Solution Explorer pane and the Properties pane side-by-side.
  2. Select the header file for the form class in the Solution Explorer pane.
  3. In the properties pane, select "C++ Form" under the "File Type" property.

The header file will now display a form icon next to it's name and will open in the form editor when double clicked.



来源:https://stackoverflow.com/questions/584881/adding-existing-form-to-c-cli-winforms-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!