Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Prevent Web Custom Control Appearing in the Toolbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Just Me - 26 Dec 2007 14:25 GMT
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#
Coskun SUNALI [MVP] - 26 Dec 2007 15:33 GMT
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 : .....
{

}

Signature

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

>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#
Just Me - 26 Dec 2007 16:28 GMT
Excellent Advice. Just what I needed. - Thank You !

> Hi,
>
[quoted text clipped - 12 lines]
>>
>> I have written it in C#
Coskun SUNALI [MVP] - 26 Dec 2007 16:52 GMT
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.

Signature

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

> Excellent Advice. Just what I needed. - Thank You !
>
[quoted text clipped - 14 lines]
>>>
>>> I have written it in C#

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.