Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. How do I add existing visual Item to a project

How do I add existing visual Item to a project

Scheduled Pinned Locked Moved Visual Studio
csharpc++questiontutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tony_Joh
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups