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. How to stop VS to load user controls into toolbox?

How to stop VS to load user controls into toolbox?

Scheduled Pinned Locked Moved C#
visual-studiowinformshelptutorialquestion
4 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.
  • M Offline
    M Offline
    Morven Huang
    wrote on last edited by
    #1

    Hi guys, There're many user controls in my current project,and VS always initializes and loads these controls into toolbox,sometime it costs me 20 minutes to finish this,and in this 20 minutes VS is no response and I can do nothing. So I'm curious to know if there's a way to stop VS to do this. Anything you can help it would be appreciated!

    L 1 Reply Last reply
    0
    • M Morven Huang

      Hi guys, There're many user controls in my current project,and VS always initializes and loads these controls into toolbox,sometime it costs me 20 minutes to finish this,and in this 20 minutes VS is no response and I can do nothing. So I'm curious to know if there's a way to stop VS to do this. Anything you can help it would be appreciated!

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, I haven't tried this, but there is a property under menu Tools/Options/WindowsFormsDesigner/AutoToolboxPopulate; you may have to check "Show all settings" first. BTW: if your UserControls take that long, maybe you should limit what code they execute inside the Designer by qualifying slow code with an if (!DesignMode) ... . Example: there probably is no need to perform database accesses when loading a Form inside the Designer. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


      M 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, I haven't tried this, but there is a property under menu Tools/Options/WindowsFormsDesigner/AutoToolboxPopulate; you may have to check "Show all settings" first. BTW: if your UserControls take that long, maybe you should limit what code they execute inside the Designer by qualifying slow code with an if (!DesignMode) ... . Example: there probably is no need to perform database accesses when loading a Form inside the Designer. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


        M Offline
        M Offline
        Morven Huang
        wrote on last edited by
        #3

        Thank you for your answer.Yes,it does work!!

        L 1 Reply Last reply
        0
        • M Morven Huang

          Thank you for your answer.Yes,it does work!!

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          You're welcome. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


          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