Prevent Web Custom Control Appearing in the Toolbox

Prevent Web Custom Control Appearing in the Toolbox

am 26.12.2007 15:25:05 von unknown

I want a Base Class to derive my other web controls from, but I dont want it
to appear in the toolbox, I think there must be a class attribute for this,
can anyone tell me the exact syntax I need to use for this.

I have written it in C#

Re: Prevent Web Custom Control Appearing in the Toolbox

am 26.12.2007 16:33:03 von Coskun

Hi,

ToolboxItemAttribute is what you are looking for. The usage to hide the
control from the toolbox is shown below.

[System.ComponentModel.ToolboxItem(false)]
protected class MyControl : .....
{

}



--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com


"Just Me" wrote in message
news:uZN5Xt8RIHA.5016@TK2MSFTNGP06.phx.gbl...
>I want a Base Class to derive my other web controls from, but I dont want
>it to appear in the toolbox, I think there must be a class attribute for
>this, can anyone tell me the exact syntax I need to use for this.
>
> I have written it in C#
>
>
>
>

Re: Prevent Web Custom Control Appearing in the Toolbox

am 26.12.2007 17:28:49 von unknown

Excellent Advice. Just what I needed. - Thank You !


"Coskun SUNALI [MVP]" wrote in message
news:uq3HjS9RIHA.5160@TK2MSFTNGP05.phx.gbl...
> Hi,
>
> ToolboxItemAttribute is what you are looking for. The usage to hide the
> control from the toolbox is shown below.
>
> [System.ComponentModel.ToolboxItem(false)]
> protected class MyControl : .....
> {
>
> }
>
>
>
> --
> All the best,
> Coskun SUNALI
> MVP ASP/ASP.NET
> http://sunali.com
>
>
> "Just Me" wrote in message
> news:uZN5Xt8RIHA.5016@TK2MSFTNGP06.phx.gbl...
>>I want a Base Class to derive my other web controls from, but I dont want
>>it to appear in the toolbox, I think there must be a class attribute for
>>this, can anyone tell me the exact syntax I need to use for this.
>>
>> I have written it in C#
>>
>>
>>
>>
>

Re: Prevent Web Custom Control Appearing in the Toolbox

am 26.12.2007 17:52:53 von Coskun

Hi,

You are always welcome. I also responded to one of your other questions
[Document Dom / Table Events Problems]. Most probably, you haven't seen it
yet because it was 7 days old. If you are still looking for a solution, it
is waiting there for you.


--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com


"Just Me" wrote in message
news:ORlDhy9RIHA.3532@TK2MSFTNGP04.phx.gbl...
> Excellent Advice. Just what I needed. - Thank You !
>
>
> "Coskun SUNALI [MVP]" wrote in message
> news:uq3HjS9RIHA.5160@TK2MSFTNGP05.phx.gbl...
>> Hi,
>>
>> ToolboxItemAttribute is what you are looking for. The usage to hide the
>> control from the toolbox is shown below.
>>
>> [System.ComponentModel.ToolboxItem(false)]
>> protected class MyControl : .....
>> {
>>
>> }
>>
>>
>>
>> --
>> All the best,
>> Coskun SUNALI
>> MVP ASP/ASP.NET
>> http://sunali.com
>>
>>
>> "Just Me" wrote in message
>> news:uZN5Xt8RIHA.5016@TK2MSFTNGP06.phx.gbl...
>>>I want a Base Class to derive my other web controls from, but I dont want
>>>it to appear in the toolbox, I think there must be a class attribute for
>>>this, can anyone tell me the exact syntax I need to use for this.
>>>
>>> I have written it in C#
>>>
>>>
>>>
>>>
>>
>
>