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. Adding a User Control

Adding a User Control

Scheduled Pinned Locked Moved Visual Studio
csharpwinformscomquestion
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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi, For some reason none of my User Controls (authored in C#) can be inserted into forms any more, every time i try, it just says that it can't load the library, and I should check the library is OK, I've checked numerous times and it still won't work!!! Any ideas? Dave Kerr focus_business@hotmail.com www.focus.esmartweb.com

    M 1 Reply Last reply
    0
    • L Lost User

      Hi, For some reason none of my User Controls (authored in C#) can be inserted into forms any more, every time i try, it just says that it can't load the library, and I should check the library is OK, I've checked numerous times and it still won't work!!! Any ideas? Dave Kerr focus_business@hotmail.com www.focus.esmartweb.com

      M Offline
      M Offline
      MSF
      wrote on last edited by
      #2

      It could be a number of things. Have you removed any auto-generated code from the constructor or anywhere else in your User Controls? This could be one source of trouble. Something else to check would be if you added your custom controls to your Toolbox through the Toolbox editor but now build your User Controls to a different destination. The only other problem I could think of would be some sort of trouble with your design-time license. Is your User Control project in the same solution as the form which you attempting to use the control on? If so, open your User Control files in the IDE and rebuild them. This will refresh the Toolbox's reference to your User Control. Then try adding the control to your form again. Hope this helps. Michael CSO, ActiveWare LLC http://www.ActiveWareSolutions.com

      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