How do I add existing visual Item to a project
-
Hello!! Normally I use C# but we have a project that is creating a window control library DLL that is done in C++.NET and that is here I have some problems that I want to solve. To be able to understand my question fully, I do the following. 1. Create a project that is a WindowControlLibrary called Test in C++.NET in this project we have several files but the following are intresting for me. Under Source Files we have a file called TestControl.cpp Under Header Files we have a file called TestControl.h and if you expand this file you can see TestControl.resX. 2.Open View Designer for TestControl.h and add for example a button. 3. Everything works as it should so far. 4. Now delete file TestControl.cpp and TestControl.h from the project Test. When file TestControl.h was deleted, file TestControl.resX was also deleted because it was connected to TestControl.h 5. The files still exist in folder Test but does not exist in project Test. 6 Now assume that you want to add these files(TestControl.cpp, TestControl.h and TestControl.resX) back into project Test again. 7 I have tried different variation for Add Existing Item for my three files to project Test but all my attempts failed in the way that I can never open View Designor. 8 So how do I do if I want to add an existing visual control like the TestControl. 9 It works perfectly to add new Item which I do in this way click on Source File and select add New Item and choose for example User Control. //Tony