Faster method

  • Thread starter Thread starter Christina Androne
  • Start date Start date
C

Christina Androne

Hello!

Anybody knows a faster method for adding toolbox items to the IDE
toolbox programatically? At the moment I am using the
ToolBox.ToolBoxItems.Add (...), but since all the componets I need to
add are in the same DLL, I would like to know if there is a way of
adding all controls from assembly in one step, without loading ,
freeing the dll for every added item. SOmethign like AddAllItems(string
DllPath). Is there such thing?


TIA,
Christina Androne
 
Christina,

Unfortunately no, there is not. You might want to try loading the
assembly yourself, and then calling the Add method for each type you want to
add. It might spare some overhead.

Hope this helps.
 
There is a really good book Inside Visual Studio.net that
you may like.

I Added everything the way you did.
 
Back
Top