How to let a control not displayed in toolbox?

N

Neo

Hi,

I built some web controls and one of them inherits textbox class.So it
would be displayed when assembly is added to toolbox.I know it can be
unchecked in "Customize Toolbox" window when adding assembly,but the
checkbox in "Customize Toolbox" window is checked by default.Are there any
ways to let the control not even displayed in "Customize Toolbox" window or
let the checkbox unchecked by default.


Thanks
 
L

LucaP

Neo said:
Hi,

I built some web controls and one of them inherits textbox class.So it
would be displayed when assembly is added to toolbox.I know it can be
unchecked in "Customize Toolbox" window when adding assembly,but the
checkbox in "Customize Toolbox" window is checked by default.Are there any
ways to let the control not even displayed in "Customize Toolbox" window or
let the checkbox unchecked by default.

Maybe you can declare the control as "public internal".
In this way, it won't be visible outsite the assembly...
Bye.
 
J

Jos Branders

Neo said:
Hi,

I built some web controls and one of them inherits textbox class.So it
would be displayed when assembly is added to toolbox.I know it can be
unchecked in "Customize Toolbox" window when adding assembly,but the
checkbox in "Customize Toolbox" window is checked by default.Are there any
ways to let the control not even displayed in "Customize Toolbox" window or
let the checkbox unchecked by default.

Use this attribute in your control source code (this is VB.NET syntax):

<ToolBoxItem(False)> _
Public Class MyTextBoxClass

Jos
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top