How to let web controls not displayed in toolbox

Discussion in 'ASP .Net Building Controls' started by Neo, Jun 9, 2004.

  1. Neo

    Neo Guest

    Hi,
    I built some web controls and one of them inherits textbox class.But I
    don't want it displayed in toolbox when assembly is added to toolbox.I know
    if it can be unchecked in the "Customize Toolbox" window when adding the
    assembly,but that checkbox is checked by default.Is there any way let the
    control don't even appear in "Customize Toolbox" window ?

    Thanks.
    Neo, Jun 9, 2004
    #1
    1. Advertising

  2. Neo

    Natty Gur Guest

    Hi,
    Use the ToolboxItem(false) attribute on your Component/Control class.
    This will prevent it from appearing in the Toolbox.


    Natty Gur[MVP]

    blog : http://weblogs.asp.net/ngur
    Mobile: +972-(0)52-8888377


    *** Sent via Devdex http://www.devdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur, Jun 10, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luigi Donatello Asero

    Let or not let the text float

    Luigi Donatello Asero, Jan 15, 2004, in forum: HTML
    Replies:
    6
    Views:
    467
    Steve R.
    Jan 15, 2004
  2. boney
    Replies:
    1
    Views:
    563
  3. Neo

    How to let a control not displayed in toolbox?

    Neo, Jun 9, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    143
    Jos Branders
    Jun 10, 2004
  4. Andy

    Web Controls not displayed

    Andy, Jul 31, 2003, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    98
    Alvin Bruney
    Jul 31, 2003
  5. ABC

    How to add my web user controls to toolbox?

    ABC, Nov 4, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    150
Loading...

Share This Page