Adding existing items (Windows forms) into a project

已答复 Adding existing items (Windows forms) into a project

  • Monday, November 28, 2005 8:21 PM
     
     
    Environment: XPPro SP2, VS.Net2003

    When I add a .Net form using the wizard, I am able to use the form designer to edit the form.  However, when I add the files using "Add existing items", I won't able to use the form designer.  In the later case, the resx file does not appear under the header file of the form.  Is there a way to fix this?

    Thanks!

All Replies

  • Monday, November 28, 2005 10:27 PM
     
     Answered
    Select the header file in the Solution Explorer, then from the Properties window, change the FileType from C++ Header File to C++ Form.  Now, you should be able to edit the form and the resx file should be generated.

    Vu Tran
    Visual C++ Team
  • Monday, November 28, 2005 11:38 PM
     
     
    Thanks Vu!

    I feel so stupid.  How can I miss that! Stick out tongue

    Have a great day!

    Dennis