views:

189

answers:

3

I have around 30-40 reports in my project, and Visual Studio 2008 insists on adding them to the Toolbox each and every time I launch Visual Studio and go to the Designer. As you can imagine, this takes a while and consumes time that I could be otherwise programming. I have other custom controls that I don't want to go away, but I don't need the reports displayed there at all. Is there a way I can prevent this?

A: 

Interesting. I've never seen this happen before. You may right click on the toolbox and click "Choose Items" to bring open the Toolbox items window. In there you can make sure that they aren't selected in the .NET Framework Components tab.

If they are lumped in with your user controls then I think you can change the namespace of either the reports or the user controls to separate them out, but I'm not 100% sure on that. Hope that helps if only marginally. :)

Dusty
That will get rid of them until I restart Visual Studio, and then they'll come right back.
Malfist
+2  A: 

You need to go into Tools --> Options Then find Windows Forms Designer General properties. Then set the last entry AutoToolboxPopulate to False.

This will stop Visual Studio from loading your reports into the toolbox.

John Hunter
that gets rid of my other custom controls that I want to keep, how can I make them reappear?
Malfist
you need to use the Choose Items menu and select them from the list. Then you can select exactly which controls you want in the toolbox.
John Hunter
I tried that, they don't show up in there anymore.
Malfist
+1  A: 

Not sure if this is possible for your project, but don't use strongly typed reports. I've never had a use for them. Why do you need 30 of them? I've always stored the report path in a database and kept all my .rpt's out of the assembly.

dotjoe