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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How do I put user control in toolbox

How do I put user control in toolbox

Scheduled Pinned Locked Moved Visual Basic
questionvisual-studio
8 Posts 3 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.
  • V Offline
    V Offline
    VFaul
    wrote on last edited by
    #1

    I'm using VS 2005 with SP1. I created a user control. In the same solution I created a new project to test the control. In the test project, I added a reference to the user control project. My user control does not show up in the toolbox. What do I have to do to have it show up? Thanks, VF

    N D 2 Replies Last reply
    0
    • V VFaul

      I'm using VS 2005 with SP1. I created a user control. In the same solution I created a new project to test the control. In the test project, I added a reference to the user control project. My user control does not show up in the toolbox. What do I have to do to have it show up? Thanks, VF

      N Offline
      N Offline
      nlarson11
      wrote on last edited by
      #2

      add it manually - right-click on toolbox and click add and choose your dll...

      V 1 Reply Last reply
      0
      • N nlarson11

        add it manually - right-click on toolbox and click add and choose your dll...

        V Offline
        V Offline
        VFaul
        wrote on last edited by
        #3

        There isn't an "Add" when I right-click on the toolbox. However, I used the "Add tab", and entered an appropriate name. Then I dragged my dll file into the area in the new tab. Now it shows up.

        N V 2 Replies Last reply
        0
        • V VFaul

          There isn't an "Add" when I right-click on the toolbox. However, I used the "Add tab", and entered an appropriate name. Then I dragged my dll file into the area in the new tab. Now it shows up.

          N Offline
          N Offline
          nlarson11
          wrote on last edited by
          #4

          sorry went by memory -- see what that got me... it's actually "choose item" will allow you to add to the toolbox.

          1 Reply Last reply
          0
          • V VFaul

            There isn't an "Add" when I right-click on the toolbox. However, I used the "Add tab", and entered an appropriate name. Then I dragged my dll file into the area in the new tab. Now it shows up.

            V Offline
            V Offline
            VFaul
            wrote on last edited by
            #5

            "Choose Items..." and browsing to the dll also works. Next question: How do I modify the icon for the user control that is displayed in the toolbox. I looked for an Icon property for my user control, but there doesn't seem to be one.

            1 Reply Last reply
            0
            • V VFaul

              I'm using VS 2005 with SP1. I created a user control. In the same solution I created a new project to test the control. In the test project, I added a reference to the user control project. My user control does not show up in the toolbox. What do I have to do to have it show up? Thanks, VF

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              You don't have to add it manually. This SHOULD show up automatically when you build the project. But, it's been known to screw up. Sometimes closing Visual Studio and restarting it, loading your project and recompiling takes care of it. Other times, you have to right-click the Toolbox and pick Reset Toolbox.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              V 1 Reply Last reply
              0
              • D Dave Kreskowiak

                You don't have to add it manually. This SHOULD show up automatically when you build the project. But, it's been known to screw up. Sometimes closing Visual Studio and restarting it, loading your project and recompiling takes care of it. Other times, you have to right-click the Toolbox and pick Reset Toolbox.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                V Offline
                V Offline
                VFaul
                wrote on last edited by
                #7

                Still doesn't work. At least I can add it manually. Do you know how I can modify the icon that shows up in the toolbox? Doesn't seem to be an Icon property for the user control.

                D 1 Reply Last reply
                0
                • V VFaul

                  Still doesn't work. At least I can add it manually. Do you know how I can modify the icon that shows up in the toolbox? Doesn't seem to be an Icon property for the user control.

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  You can't. The icon in the ToolBox doesn't show up properly at all during development. It won't show a proper icon until the control is finalized in a Release build and is registered in the GAC, complete with strong name.

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007

                  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