Faster method

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christina Androne

    #1

    Faster method

    Hello!

    Anybody knows a faster method for adding toolbox items to the IDE
    toolbox programatically ? At the moment I am using the
    ToolBox.ToolBox Items.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(str ing
    DllPath). Is there such thing?


    TIA,
    Christina Androne

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Faster method

    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.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Christina Androne" <achristina@hom e.ro> wrote in message
    news:uZaEZEInDH A.1004@TK2MSFTN GP09.phx.gbl...[color=blue]
    > Hello!
    >
    > Anybody knows a faster method for adding toolbox items to the IDE
    > toolbox programatically ? At the moment I am using the
    > ToolBox.ToolBox Items.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(str ing
    > DllPath). Is there such thing?
    >
    >
    > TIA,
    > Christina Androne
    >[/color]


    Comment

    • Christina Androne

      #3
      Re: Faster method

      Thanks a lot for your answer,

      Christina Androne

      Comment

      • Lawrence Thurman

        #4
        Re: Faster method

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

        I Added everything the way you did.

        "Christina Androne" <achristina@hom e.ro> wrote in message
        news:uZaEZEInDH A.1004@TK2MSFTN GP09.phx.gbl...[color=blue]
        > Hello!
        >
        > Anybody knows a faster method for adding toolbox items to the IDE
        > toolbox programatically ? At the moment I am using the
        > ToolBox.ToolBox Items.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(str ing
        > DllPath). Is there such thing?
        >
        >
        > TIA,
        > Christina Androne
        >[/color]


        Comment

        Working...