Stopping Custom Controls from being added to Visual Studio Toolbox

by Andrew Jackson 21. August 2008 04:47

This has bugged me for ages and I've finally spent 10 minutes finding the solution to it.

I develop lots of custom controls which I will never place on a form at design time, their add-on components that are loaded at runtime and docked in conditionally.  This ended up with Solution bloat meaning every time I first went into a design view of a form Visual Studio went into a fit building up a complete toolbox of things I'd never need.

One simple attribute was all that was needed to stop them being populated in future;

<System.ComponentModel.DesignTimeVisible(False)> _
Public Class MyUserControl ....

Hopefully someone else will find this useful for the future.

  kick it on DotNetKicks.com

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Development | VB.net

Comments

Comments are closed

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About Me

Andrew Jackson

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008,2009 Andrew K. Jackson

RecentComments

Comment RSS