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?
views:
189answers:
3Interesting. 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. :)
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.
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.