Search code examples
c#visual-studiovisual-studio-2008toolbox

Stop DataSet coming to the Toolbox


In my C# windows application solution I've got a Reporting project which contains many datasets. Those datasets are loading to the toolbox automatically. I think that makes my visual studio slower. Is there anyway to stop loading them?

Thanks!


Solution

  • you can add

    [DesignTimeVisible(false)]
    [ToolboxItem(false)]
    

    to the classes that you want to hide from the designer. more info from msdn here and here