Add custom control programmatically on Toolbox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • R.A.F.

    #1

    Add custom control programmatically on Toolbox

    Hi,

    2 Days ago i wrote a post about "how to add programmaticall y custom
    control on Toolbox".
    I'm still blocked with this issue.

    Is there someone who did it under C#.NET 2005 and 2008 ?

    thanks a lot,

    RAF
  • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

    #2
    RE: Add custom control programmaticall y on Toolbox

    If you are talking about Windows Forms, you can create a userControl and add
    it to the Toolbox via "Add/Remove Items" context menu on a tab in the Toolbox.
    If you refer to ASP.NET custom controls, same way.
    -- Peter
    Recursion: see Recursion
    site: http://www.eggheadcafe.com
    unBlog: http://petesbloggerama.blogspot.com
    BlogMetaFinder: http://www.blogmetafinder.com



    "R.A.F." wrote:
    Hi,
    >
    2 Days ago i wrote a post about "how to add programmaticall y custom
    control on Toolbox".
    I'm still blocked with this issue.
    >
    Is there someone who did it under C#.NET 2005 and 2008 ?
    >
    thanks a lot,
    >
    RAF
    >

    Comment

    • R.A.F.

      #3
      Re: Add custom control programmaticall y on Toolbox

      Hi Peter,

      No it's not exactly true.
      In fact, i've developed my own control and when i will sell it, i will
      allow end user/customer to install it on their own MS Visual studio
      environment.

      For that i would like to create a small exe which will install the
      control (included into a dll file) to their Toolbox.
      therefore, i would like to create a TAB with a particular name (in my
      example : RogTech) and to add into this tab, all my controls (or items).

      for now, i'm able to create this tab, but it always includes only the
      "Pointer" item... it never has my control and i do not know why :-(

      RAF

      Peter Bromberg [C# MVP] wrote:
      If you are talking about Windows Forms, you can create a userControl and add
      it to the Toolbox via "Add/Remove Items" context menu on a tab in the Toolbox.
      If you refer to ASP.NET custom controls, same way.
      -- Peter
      Recursion: see Recursion
      site: http://www.eggheadcafe.com
      unBlog: http://petesbloggerama.blogspot.com
      BlogMetaFinder: http://www.blogmetafinder.com
      >
      >
      >
      "R.A.F." wrote:
      >
      >
      >Hi,
      >>
      >2 Days ago i wrote a post about "how to add programmaticall y custom
      >control on Toolbox".
      >I'm still blocked with this issue.
      >>
      >Is there someone who did it under C#.NET 2005 and 2008 ?
      >>
      >thanks a lot,
      >>
      >RAF
      >>
      >>

      Comment

      Working...