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. User control without being in the GAC

User control without being in the GAC

Scheduled Pinned Locked Moved C#
dotnetquestion
2 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.
  • E Offline
    E Offline
    Esmo2000
    wrote on last edited by
    #1

    Is there a way I can place a user control onto a form in designer mode without having to have it go into the GAC? The tutorials out there seem to indicate this is the only way to get it into your toolbox. Regards, James

    Did I post well? Rate it! Did I post badly? Rate that too!

    J 1 Reply Last reply
    0
    • E Esmo2000

      Is there a way I can place a user control onto a form in designer mode without having to have it go into the GAC? The tutorials out there seem to indicate this is the only way to get it into your toolbox. Regards, James

      Did I post well? Rate it! Did I post badly? Rate that too!

      J Offline
      J Offline
      J 0
      wrote on last edited by
      #2

      If I understand you correctly, this may solve your problem. This is how I did it on a project I'm currently working on. Show your toolbox in VS. Right click on the toolbox, and select the Choose Items... menu option. A dialog now shows that is titled "Choose Toolbox Items". Click browse, find the DLL or EXE your user control is in, and click OK. The list that is under the .NET Framework Components tab should now list all User Controls that DLL or EXE contained. Make sure that the checkbox next to the user control you want to put on your form is checked, then click OK. The "Choose Toolbox Items" dialog goes away, and your User Control is added to the currently selected tab in your toolbox (doesn't look like a tab, but that is what the context menu calls them) You should now be able to drop that user control on your form. BTW, I use VS2005, so I'm not sure if its the same for VS2003. HTH.

      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