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. C#
  4. Cannot add my Control to Form

Cannot add my Control to Form

Scheduled Pinned Locked Moved C#
visual-studiowinformshelpquestion
3 Posts 2 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
    Tim McCurdy
    wrote on last edited by
    #1

    I rarely ever have problems like this. I've been developing a control which I've finally finished. I want to add this control to another Form in another Project. Both of these Projects reside in the same solution. However, the IDE has failed to provide a control Icon in the "My User Controls" Tab and instead I've had to reference the DLL and add the Items manually to my Toolbox. Now for the kicker. When I drop my new Control onto the Form, it adds a reference to that Library, but no control displays nor does it throw an error, nor does the Form "look" Modified (Asterix next to the Form Title). Does anyone know of anything I can do to get this working? This seems to be happing a lot more and I've been developing controls for the past 2 years! :doh:

    A 1 Reply Last reply
    0
    • T Tim McCurdy

      I rarely ever have problems like this. I've been developing a control which I've finally finished. I want to add this control to another Form in another Project. Both of these Projects reside in the same solution. However, the IDE has failed to provide a control Icon in the "My User Controls" Tab and instead I've had to reference the DLL and add the Items manually to my Toolbox. Now for the kicker. When I drop my new Control onto the Form, it adds a reference to that Library, but no control displays nor does it throw an error, nor does the Form "look" Modified (Asterix next to the Form Title). Does anyone know of anything I can do to get this working? This seems to be happing a lot more and I've been developing controls for the past 2 years! :doh:

      A Offline
      A Offline
      AB7771
      wrote on last edited by
      #2

      Go in the code view and check whether the control is getting added on the form Is the control visible after placing it on the form? did u manually add the control in the toolbox? Maybe u have forgot one of the above points Thanks Pramod

      T 1 Reply Last reply
      0
      • A AB7771

        Go in the code view and check whether the control is getting added on the form Is the control visible after placing it on the form? did u manually add the control in the toolbox? Maybe u have forgot one of the above points Thanks Pramod

        T Offline
        T Offline
        Tim McCurdy
        wrote on last edited by
        #3

        I finally got it to work. After manually adding the Control to the Toolbox, and dropping it on my Form, the Project created a reference to the DLL but it did not show on the Form nor did it create variables in the Form for the Control. I think I eventually determined that there was an issue with the Resource file for the Control project so I fixed that and removed all references to the Control in the new Project. After dropping it on the Form this time, it worked.

        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