2

I have a Visual Studio 2008 .NET Framework 2.0 project that I'm building. It has some custom components. These are not populated into the Toolbox. Why not?

I once added a custom user control to the box, and it auto added all my components. But, when I restarted Visual Studio 2008, it failed to auto populate the components that are part of the project.

Any idea on how to get them to auto populate? Seems like a VS2008 bug.

Michael T
  • 1,367
  • 2
  • 16
  • 27

1 Answers1

5

It is an option. Tools + Options, Windows Forms Designer, General, AutoToolboxPopulate must be set to True.

enter image description here

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
  • I have that option set to true. Yet, it doesn't auto populate the list. It only did this once, when I added a user control, it added all the components I already had created. But, when I restarted Visual Studio 2008, they went away. – Michael T Nov 07 '10 at 20:38
  • I dunno, time to reset it. Right-click + Reset. Rebuild your project. – Hans Passant Nov 07 '10 at 20:41
  • Well, a rebuild all added them in, so I'll mark this as answered. Still seems kind of buggy. Thanks for your help. – Michael T Nov 07 '10 at 20:42